Skip to content

Commit

Permalink
Use '--inspect' instead of '--inspect-brk' to run the "debug" script …
Browse files Browse the repository at this point in the history
…in Node.JS sample projects

'--inspect-brk' stops the execution at the start of the command
(waiting for a debugger to attach to it) while '--inspect' does not.
We need the application to be started regardless of whether a debugger
is attached or not, as we are testing that we can communicate with
the forwarded ports.
  • Loading branch information
rm3l committed Jan 19, 2023
1 parent c6a3df7 commit b87936e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "EPL-2.0",
"scripts": {
"start": "node server.js",
"debug": "node --inspect-brk=${DEBUG_PORT} server.js",
"debug": "node --inspect=${DEBUG_PORT} server.js",
"test": "node test/test.js"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion tests/examples/source/devfiles/nodejs/project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "EPL-2.0",
"scripts": {
"start": "node server.js",
"debug": "node --inspect-brk=${DEBUG_PORT_PROJECT} server.js",
"debug": "node --inspect=${DEBUG_PORT_PROJECT} server.js",
"test": "node test/test.js"
},
"dependencies": {
Expand Down

0 comments on commit b87936e

Please sign in to comment.