From ec5d0d00f5288a48307a43ec7f1925e643e50ae1 Mon Sep 17 00:00:00 2001 From: Denis Perov Date: Mon, 30 Sep 2024 16:23:27 +0300 Subject: [PATCH] Update VSCode debugging configuration --- .vscode/launch.json | 84 ++++++++++++++++++++++++++------------------- 1 file changed, 48 insertions(+), 36 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 1cb8d89fa..5cdd3f3ef 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,45 +1,57 @@ { "version": "0.2.0", "configurations": [ - { - "type": "chrome", - "request": "launch", - "name": "Meteor: Chrome", - "url": "http://localhost:3000", - "webRoot": "${workspaceFolder}" + { + "type": "node", + "request": "launch", + "name": "Meteor: Node", + "runtimeExecutable": "meteor", + "runtimeArgs": [ + "--port=4000", + "--exclude-archs=web.browser.legacy,web.cordova", + "--raw-logs" + ], + "env": { + "WRITABLE_PATH": "/tmp/uploads", }, - { - "type": "node", - "request": "launch", - "name": "Meteor: Node", - "runtimeExecutable": "/home/wekan/.meteor/meteor", - "runtimeArgs": ["run", "--inspect-brk=9229"], - "outputCapture": "std", - "port": 9229, - "timeout": 60000 + "outputCapture": "std", + "restart": true, + "timeout": 60000 + }, + { + "type": "chrome", + "request": "launch", + "name": "Meteor: Chrome", + "url": "http://localhost:4000", + "sourceMapPathOverrides": { + "meteor://💻app/*": "${workspaceFolder}/*" }, - { - "type": "node", - "request": "launch", - "name": "Test: Node", - "runtimeExecutable": "meteor", - "runtimeArgs": [ - "test", - "--inspect-brk=9229", - "--port=4040", - "--exclude-archs=web.browser.legacy,web.cordova", - "--driver-package=meteortesting:mocha", - "--settings=settings.json" - ], - "outputCapture": "std", - "port": 9229, - "timeout": 60000 - } + "userDataDir": "${env:HOME}/.vscode/chrome" + }, + { + "type": "node", + "request": "launch", + "name": "Test: Node", + "runtimeExecutable": "meteor", + "runtimeArgs": [ + "test", + "--port=4040", + "--exclude-archs=web.browser.legacy,web.cordova", + "--driver-package=meteortesting:mocha", + "--settings=settings.json", + "--raw-logs" + ], + "env": { + "TEST_WATCH": "1" + }, + "outputCapture": "std", + "timeout": 60000 + } ], "compounds": [ - { - "name": "Meteor: All", - "configurations": ["Meteor: Node", "Meteor: Chrome"] - } + { + "name": "Meteor: All", + "configurations": ["Meteor: Node", "Meteor: Chrome"] + } ] }