Questions tagged [node-debugger]

Remote debugger and debugging client that comes built-in with Node.js.

Resources

74 questions
54
votes
5 answers

What does the Node.js `--nolazy` flag mean?

When I use --nolazy, I can finally debug asynchronously with IntelliJ, as breakpoints stop at the correct place. But I can't find any docs on --nolazy... What does --nolazy mean?
born2net
  • 24,129
  • 22
  • 65
  • 104
13
votes
4 answers

How to enable NODE_DEBUG without environment variables?

I am trying to debug what appears to be a socket error in the node.js https library environment when running in the AWS Lambda environment (Node.js 4.3). This issue only occurs highly intermittently and only under heavy load. My team has been able…
Ryan Gross
  • 6,423
  • 2
  • 32
  • 44
12
votes
2 answers

Can't get node-debug to work

This feels really silly, but I can't get node inspector / node-debug to work. The instructions say to do npm install then to run node-debug web.js. So I did that. Now I have a lovely browser window open showing me my code with breakpoints... and no…
MalcolmOcean
  • 2,807
  • 2
  • 29
  • 38
7
votes
1 answer

How do I get VSCode to load source maps for NPM dependencies?

I have a dependency that is written in TypeScript. The dependency includes source maps and original source in the NPM package. If I set a breakpoint in my code and then step into the dependency, it correctly steps into the TypeScript rather than…
7
votes
1 answer

Can you use Node Inspector with the .coffee handler?

Debugging node apps using node-inspector is pretty simple if you're scripting using JavaScript or compiled Coffee (coffee -c -m script.coffee). However, when using the coffeescript require handler: require('coffee-script/register'); …
Qix - MONICA WAS MISTREATED
  • 14,451
  • 16
  • 82
  • 145
5
votes
2 answers

Cannot open Chrome to the right url for debugging Node.js script

I run this at the command line: $ node --inspect --debug-brk test/src/dev/node/define/1.test.js Debugger listening on ws://127.0.0.1:9229/93a5524a-ae0a-4aa2-a985-3cd6ac6a2b9f For help see https://nodejs.org/en/docs/inspector normally this commands…
5
votes
1 answer

Debug es6 transpiled code using node-inspector or babel-node-debug

When I debug my node rest api, I try to use node-inspector node-inspector node --debug server.js This way I can debug my api using localhost:3000/api... If I use node-debug, there's no way. It doens't start port 3000. However my code is ES6, so in…
user2670996
  • 2,654
  • 6
  • 29
  • 45
5
votes
1 answer

node-debug does not break and shows no code

I'm trying to use node-debug to debug my CLI node script. According to everything I've read, I should simply be able to run my script with node-debug, which will start the script with --debug-brk, and open my browser to the node-inspector…
rich remer
  • 3,407
  • 2
  • 34
  • 47
4
votes
0 answers

VS code debugger stopping

Whenever I want to launch VS code's debugger, it runs for a second or two and then stops with the message "Debugger attached. Waiting for the debugger to disconnect... in the debugger console. link to the debugger screenshot { // Use…
4
votes
1 answer

Nodejs --debug-brk extremely slow

I'm using node v6.10.0 and trying to figure out why my --debug-brk is so incredibly slow. Without this flag (with just --inspect or --debug), it's almost instantaneous, though the debugger still takes forever to attach. This one flag dramatically…
MattEnth
  • 843
  • 1
  • 7
  • 19
4
votes
4 answers

Running node-inspector and node-debug with npm run

How to run two script at once with npm run? First of all I know grunt or gulp but I want to make it without another js modules. To make this I have this script: "scripts": { "start": "node ./node/www", "nodemon": "./node_modules/.bin/nodemon…
uzay95
  • 16,052
  • 31
  • 116
  • 182
4
votes
1 answer

Clear all breakpoints in Node debugger

I set a new breakpoint using setBreakpoint(3) (where 3 is the line number). If I want to remove it I can use clearBreakpoint(3), but how can I remove all breakpoints added this way?
Ionică Bizău
  • 109,027
  • 88
  • 289
  • 474
3
votes
3 answers

fix: 'nodemon' is not recognized as an internal or external command, operable program or batch file

What is fix, if found error message *nodemon' is not recognized as an internal or external command, operable program or batch file. * after hitting command nodemon index in your node project the
Muhammad Hamed K
  • 279
  • 1
  • 4
  • 9
3
votes
1 answer

Display original typescript file when debugging typescript using node-inspector CLI

Is there any means of having the node-inspector CLI (or any CLI-based debugger) display the original typescript file when debugging? For example, for debugging typescript, I usually run something like: nodemon -e ts -w src -x "tsc -p . && node…
Leeren
  • 1,931
  • 2
  • 20
  • 31
3
votes
1 answer

Converting debug configuration between WebStorm and VSCode

I recently changed from a development role to a QA role. In setting up the QA project, the instructions I have give configuration requirements for WebStorm. I however much prefer to use VSCode. I'm trying to convert WebStorm debug configuration…
nbppp2
  • 315
  • 1
  • 4
  • 12
1
2 3 4 5