Skip to content

Commit f6f381d

Browse files
authored
[OGUI-1578] Added vscode debugging configuration in launch.js (#2667)
* Added vscode debugging configuration in launch.js * .gitignore exception made for .vscode/launch.js. * Added --inspect parameter to npm run dev command to enable node debugging from the browser. * 'launch.json' modified, added Windows platform specific path options.
1 parent 70ad3d3 commit f6f381d

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ build
55
tobject2json.node
66
*/.nyc*
77
*/test/integration/test-config*
8-
.vscode
8+
.vscode/*
9+
!.vscode/launch.json
910
.idea

.vscode/launch.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "[ilg] run dev",
6+
"request": "launch",
7+
"runtimeArgs": [
8+
"run-script",
9+
"dev"
10+
],
11+
"localRoot": "${workspaceFolder}/InfoLogger/",
12+
"runtimeExecutable": "npm",
13+
"skipFiles": [
14+
"<node_internals>/**"
15+
],
16+
"outputCapture": "std",
17+
"type": "node",
18+
"windows": {
19+
"localRoot": "${workspaceFolder}\\InfoLogger\\"
20+
}
21+
}
22+
]
23+
}

InfoLogger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"scripts": {
2121
"start": "node index.js",
2222
"test": "npm run eslint && npm run mocha",
23-
"dev": "nodemon --watch index.js --watch lib --watch config.js index.js",
23+
"dev": "nodemon --inspect --watch index.js --watch lib --watch config.js index.js",
2424
"simul": "node test/live-simulator/infoLoggerServer.js",
2525
"eslint": "./node_modules/.bin/eslint --config eslint.config.js lib/ public/",
2626
"mocha": "mocha --exit $(find test -name 'mocha-*.js')",

0 commit comments

Comments
 (0)