Skip to content

Commit

Permalink
fix: 1852: slow breakpoints
Browse files Browse the repository at this point in the history
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 <michael.courtin@accenture.com>
  • Loading branch information
m-courtin authored and petermetz committed Mar 1, 2022
1 parent fed8176 commit ff02ba1
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .vscode/template.launch.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.2.0",
"version": "0.2.1",
"configurations": [
{
"type": "node",
Expand All @@ -11,7 +11,11 @@
"${relativeFile}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
"internalConsoleOptions": "neverOpen",
"outFiles": [
"${workspaceFolder}/**/*.js",
"!**/node_modules/**"
]
},
{
"name": "TAP: Current TS Test File",
Expand All @@ -30,7 +34,11 @@
],
"console": "integratedTerminal",
"sourceMaps": true,
"cwd": "${workspaceRoot}"
"cwd": "${workspaceRoot}",
"outFiles": [
"${workspaceFolder}/**/*.js",
"!**/node_modules/**"
]
},
{
"name": "Example: Supply Chain App",
Expand All @@ -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/**"
]
}
]
}

0 comments on commit ff02ba1

Please sign in to comment.