Skip to content

Commit

Permalink
[OGUI-1578] Added vscode debugging configuration in launch.js (#2667)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Houwie7000 authored Nov 21, 2024
1 parent 70ad3d3 commit f6f381d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ build
tobject2json.node
*/.nyc*
*/test/integration/test-config*
.vscode
.vscode/*
!.vscode/launch.json
.idea
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "[ilg] run dev",
"request": "launch",
"runtimeArgs": [
"run-script",
"dev"
],
"localRoot": "${workspaceFolder}/InfoLogger/",
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
"outputCapture": "std",
"type": "node",
"windows": {
"localRoot": "${workspaceFolder}\\InfoLogger\\"
}
}
]
}
2 changes: 1 addition & 1 deletion InfoLogger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"scripts": {
"start": "node index.js",
"test": "npm run eslint && npm run mocha",
"dev": "nodemon --watch index.js --watch lib --watch config.js index.js",
"dev": "nodemon --inspect --watch index.js --watch lib --watch config.js index.js",
"simul": "node test/live-simulator/infoLoggerServer.js",
"eslint": "./node_modules/.bin/eslint --config eslint.config.js lib/ public/",
"mocha": "mocha --exit $(find test -name 'mocha-*.js')",
Expand Down

0 comments on commit f6f381d

Please sign in to comment.