From ff02ba19d6a28ca194db7eb7fe57ad01a2c0d38c Mon Sep 17 00:00:00 2001 From: Michael Courtin Date: Fri, 11 Feb 2022 11:42:54 +0100 Subject: [PATCH] fix: 1852: slow breakpoints Hitting breakpoints in debug mode is much slower with V1.64 and above compared to V1.63. Visual Studio Code is suggesting to use the 'outFiles' property with a pattern to speed-up the process of hitting the breakpoints. Integrating the suggestion into the template.launch.json to provide a template solution to be taken into the launch.json on demand. Closes: #1852 Signed-off-by: Michael Courtin --- .vscode/template.launch.json | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.vscode/template.launch.json b/.vscode/template.launch.json index 98d798bea8..f03337c6c0 100644 --- a/.vscode/template.launch.json +++ b/.vscode/template.launch.json @@ -1,5 +1,5 @@ { - "version": "0.2.0", + "version": "0.2.1", "configurations": [ { "type": "node", @@ -11,7 +11,11 @@ "${relativeFile}" ], "console": "integratedTerminal", - "internalConsoleOptions": "neverOpen" + "internalConsoleOptions": "neverOpen", + "outFiles": [ + "${workspaceFolder}/**/*.js", + "!**/node_modules/**" + ] }, { "name": "TAP: Current TS Test File", @@ -30,7 +34,11 @@ ], "console": "integratedTerminal", "sourceMaps": true, - "cwd": "${workspaceRoot}" + "cwd": "${workspaceRoot}", + "outFiles": [ + "${workspaceFolder}/**/*.js", + "!**/node_modules/**" + ] }, { "name": "Example: Supply Chain App", @@ -52,16 +60,11 @@ ], "console": "integratedTerminal", "sourceMaps": true, - "cwd": "${workspaceFolder}/examples/supply-chain-app/" - }, - { - "name": "Example: Discounted Cartrade BLP (Docker)", - "type": "node", - "request": "attach", - "protocol": "inspector", - "remoteRoot": "/root/cactus", - "localRoot": "${workspaceFolder}/examples/discounted-cartrade", - "port": 9034 + "cwd": "${workspaceFolder}/examples/supply-chain-app/", + "outFiles": [ + "${workspaceFolder}/**/*.js", + "!**/node_modules/**" + ] } ] } \ No newline at end of file