Skip to content

Commit 0ff8fb7

Browse files
committed
Update launch.json
1 parent cd0f45c commit 0ff8fb7

1 file changed

Lines changed: 67 additions & 67 deletions

File tree

.vscode/launch.json

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,73 @@
11
{
22
"version": "0.2.0",
33
"configurations": [
4-
{
5-
"name": "Launch Program",
6-
"type": "node",
7-
"request": "launch",
8-
"program": "${workspaceFolder}/index.js", // Entry point of the application
9-
"preLaunchTask": "npm: build", // Task to run before launching
10-
"outFiles": ["${workspaceFolder}/dist/**/*.js"], // Compiled output files for debugging
11-
"env": {
12-
"NODE_ENV": "development"
4+
{
5+
"name": "Launch Program",
6+
"type": "node",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/index.js", // Entry point of the application
9+
"preLaunchTask": "npm: build", // Task to run before launching
10+
"outFiles": ["${workspaceFolder}/dist/**/*.js"], // Compiled output files for debugging
11+
"env": {
12+
"NODE_ENV": "development"
13+
},
14+
"console": "integratedTerminal", // Use integrated terminal for output
15+
"internalConsoleOptions": "neverOpen",
16+
"args": [], // Arguments passed to the Node.js program
17+
"sourceMaps": true, // Enable source maps for better debugging
18+
"cwd": "${workspaceFolder}", // Set the current working directory
19+
"runtimeExecutable": "node", // Specify the Node.js runtime
20+
"runtimeArgs": [
21+
"--nolazy", // Disable lazy loading for better debugging
22+
"--inspect-brk" // Start debugger and break before the first line
23+
],
24+
"skipFiles": [
25+
"<node_internals>/**" // Skip internal Node.js modules while debugging
26+
]
1327
},
14-
"console": "integratedTerminal", // Use integrated terminal for output
15-
"internalConsoleOptions": "neverOpen",
16-
"args": [], // Arguments passed to the Node.js program
17-
"sourceMaps": true, // Enable source maps for better debugging
18-
"cwd": "${workspaceFolder}", // Set the current working directory
19-
"runtimeExecutable": "node", // Specify the Node.js runtime
20-
"runtimeArgs": [
21-
"--nolazy", // Disable lazy loading for better debugging
22-
"--inspect-brk" // Start debugger and break before the first line
23-
],
24-
"skipFiles": [
25-
"<node_internals>/**" // Skip internal Node.js modules while debugging
26-
]
27-
},
28-
{
29-
"name": "Launch via NPM",
30-
"type": "node",
31-
"request": "launch",
32-
"runtimeExecutable": "npm",
33-
"runtimeArgs": [
34-
"run-script",
35-
"start" // Replace "start" with your npm script
36-
],
37-
"env": {
38-
"NODE_ENV": "development"
28+
{
29+
"name": "Launch via NPM",
30+
"type": "node",
31+
"request": "launch",
32+
"runtimeExecutable": "npm",
33+
"runtimeArgs": [
34+
"run-script",
35+
"start" // Replace "start" with your npm script
36+
],
37+
"env": {
38+
"NODE_ENV": "development"
39+
},
40+
"console": "integratedTerminal",
41+
"internalConsoleOptions": "neverOpen",
42+
"sourceMaps": true,
43+
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
3944
},
40-
"console": "integratedTerminal",
41-
"internalConsoleOptions": "neverOpen",
42-
"sourceMaps": true,
43-
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
44-
},
45-
{
46-
"name": "Attach to Process",
47-
"type": "node",
48-
"request": "attach",
49-
"processId": "${command:PickProcess}", // Dynamically pick the process to attach to
50-
"restart": true, // Automatically restart if the Node.js process stops
51-
"protocol": "inspector", // Use the inspector protocol for debugging
52-
"sourceMaps": true,
53-
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
54-
"skipFiles": [
55-
"<node_internals>/**"
56-
]
57-
},
58-
{
59-
"name": "Attach to Remote",
60-
"type": "node",
61-
"request": "attach",
62-
"address": "localhost", // Replace with the remote host if needed
63-
"port": 9229, // Default port for Node.js inspector
64-
"localRoot": "${workspaceFolder}", // Local folder mapped to the remote workspace
65-
"remoteRoot": "/app", // Remote folder in the container or server
66-
"sourceMaps": true,
67-
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
68-
"skipFiles": [
69-
"<node_internals>/**"
70-
]
71-
}
45+
{
46+
"name": "Attach to Process",
47+
"type": "node",
48+
"request": "attach",
49+
"processId": "${command:PickProcess}", // Dynamically pick the process to attach to
50+
"restart": true, // Automatically restart if the Node.js process stops
51+
"protocol": "inspector", // Use the inspector protocol for debugging
52+
"sourceMaps": true,
53+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
54+
"skipFiles": [
55+
"<node_internals>/**"
56+
]
57+
},
58+
{
59+
"name": "Attach to Remote",
60+
"type": "node",
61+
"request": "attach",
62+
"address": "localhost", // Replace with the remote host if needed
63+
"port": 9229, // Default port for Node.js inspector
64+
"localRoot": "${workspaceFolder}", // Local folder mapped to the remote workspace
65+
"remoteRoot": "/app", // Remote folder in the container or server
66+
"sourceMaps": true,
67+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
68+
"skipFiles": [
69+
"<node_internals>/**"
70+
]
71+
}
7272
]
73-
}
73+
}

0 commit comments

Comments
 (0)