Skip to content

Commit a9ef759

Browse files
committed
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: hyperledger-cacti#1852 Signed-off-by: Michael Courtin <[email protected]>
1 parent fed8176 commit a9ef759

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.vscode/template.launch.json

+16-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.2.0",
2+
"version": "0.2.1",
33
"configurations": [
44
{
55
"type": "node",
@@ -11,7 +11,11 @@
1111
"${relativeFile}"
1212
],
1313
"console": "integratedTerminal",
14-
"internalConsoleOptions": "neverOpen"
14+
"internalConsoleOptions": "neverOpen",
15+
"outFiles": [
16+
"${workspaceFolder}/**/*.js",
17+
"!**/node_modules/**"
18+
]
1519
},
1620
{
1721
"name": "TAP: Current TS Test File",
@@ -30,7 +34,11 @@
3034
],
3135
"console": "integratedTerminal",
3236
"sourceMaps": true,
33-
"cwd": "${workspaceRoot}"
37+
"cwd": "${workspaceRoot}",
38+
"outFiles": [
39+
"${workspaceFolder}/**/*.js",
40+
"!**/node_modules/**"
41+
]
3442
},
3543
{
3644
"name": "Example: Supply Chain App",
@@ -52,16 +60,11 @@
5260
],
5361
"console": "integratedTerminal",
5462
"sourceMaps": true,
55-
"cwd": "${workspaceFolder}/examples/supply-chain-app/"
56-
},
57-
{
58-
"name": "Example: Discounted Cartrade BLP (Docker)",
59-
"type": "node",
60-
"request": "attach",
61-
"protocol": "inspector",
62-
"remoteRoot": "/root/cactus",
63-
"localRoot": "${workspaceFolder}/examples/discounted-cartrade",
64-
"port": 9034
63+
"cwd": "${workspaceFolder}/examples/supply-chain-app/",
64+
"outFiles": [
65+
"${workspaceFolder}/**/*.js",
66+
"!**/node_modules/**"
67+
]
6568
}
6669
]
6770
}

0 commit comments

Comments
 (0)