Questions tagged [node-debugger]

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

Resources

74 questions
3
votes
2 answers

How do I use node debug cli with Jest?

How can I just use the simple node cli/repl debugger with Jest? The Jest documentation uses node-inspector, but it is outdated/deprecated as of Node 6.3. I tried the recommended command anyway on Node 7.7.4: node --debug-brk…
Joseph Siefers
  • 1,282
  • 1
  • 12
  • 23
3
votes
3 answers

Why is the Node debugger "break on first line" a thing?

I thought the reason the new VS Code debugger stopped on the 'use strict'; in my file was because of some weird deprecatory behaviour in new versions of Node, or else because my code had some weird error in it. Then I realised that "break on first…
Aron
  • 8,696
  • 6
  • 33
  • 59
3
votes
1 answer

node-debug: why can't I set a breakpoint?

I'm using node-debug and know which file and line for which I want to set a breakpoint. Here's what happens: debug> setBreakpoint('./services/search.js', 359) Warning: script './services/search.js' was not loaded yet. You can't list source code…
Max Heiber
  • 14,346
  • 12
  • 59
  • 97
3
votes
1 answer

cannot debug node child process (using node native debugger)

I'm trying to debug node child process, using native node debugger. See this repo for example. I tried all king of options, according to: debug1, debug1, debug3 (and a lot of other references I found online). Non of those options worked for…
Yaniv Efraim
  • 6,633
  • 7
  • 53
  • 96
3
votes
0 answers

npm debug can i invoke with multiple names

Currently I am initializing the debug module by import express = require('express'); import debug = require('debug'); var routeLogger = debug('myapp:routes:index'); var router = express.Router(); routeLogger('Start setting up index route'); I am…
Anthony C
  • 2,117
  • 2
  • 15
  • 26
3
votes
3 answers

Node-Inspector unable to open chrome browser throwing Error ENOENT

I would like to know why am I getting the following error when I try to debug node app using node inspector. Debugger listening on port 5858 events.js:154 throw er; //unhandled 'error' event Error: spawn…
Gopinath Shiva
  • 3,822
  • 5
  • 25
  • 48
3
votes
1 answer

node-debug, can't save file changes

I start 'node-debug' to debugging my node-red nodes. $ sudo node-debug --web-host=127.0.0.1 --save-live-edit=true /usr/local/lib/node_modules/node-red/red.js The debugger works fine but i can't save file changes. I get a error mesage like…
zombinary
  • 67
  • 9
3
votes
1 answer

node-debug how to disable break on uncaught exception

I am new to node.js, and specifically I am trying to debug some grunt tasks. And I meet an annoying problem when try to debug it with node-debug. The case is that it breaks on uncaught exception, and somehow there is some trying to get js/json with…
Easton L.
  • 2,904
  • 1
  • 14
  • 15
3
votes
1 answer

What is the difference between "node-debug index.js" and "run node-inspector, then node --debug index.js"

I try to use node-inspector to debug my node apps. At first, I use node-debug index.js but the inspector wont stop at debugger statement, also I am unable to set breakpoints. But if I run node-inspector then run node with debug flags node…
sayen
  • 135
  • 2
  • 7
3
votes
1 answer

node inspector can not work without specify port

I am new to node. I try to create an HTTP server that receives only POST requests and converts incoming POST body characters to upper-case and returns it to the client. And my server listen on the port provided by the first argument to your…
user3160143
  • 698
  • 1
  • 10
  • 15
2
votes
1 answer

remote debugging with vscode, console.log works but stdout is suppressed

I have a typescript remote platform project, using visual studio code (V1.28.2) as IDE. Node.js is started on platform, using the command node --inspect=0.0.0.0:9229 --inspect-brk=0.0.0.0:9229 ... there. In visual studio code the launch.json file…
Manfred Steiner
  • 1,215
  • 2
  • 13
  • 27
2
votes
1 answer

How to debug core library of node in WebStorm?

In WebStorm I could go into _stream_readable.js belonging to Node core library by using Force Step Into button. But I couldn't add any breakpoints there. Meanwhile I can do this in Chrome Devtools where there is a limitation you need http server to…
kevin_chen
  • 160
  • 1
  • 1
  • 11
2
votes
1 answer

Stop node-debug from opening a new browser window

The command: node-debug sls offline opens a new browser window every time it is run. How do we stop it from opening a new window every time? I want to reuse the existing window!
user 923227
  • 2,528
  • 4
  • 27
  • 46
2
votes
1 answer

Chrome console doesn't work for variables in node-inspector browser UI. How to enable?

Steps to reproduce. Filename is index.js and its contents: 'use strict'; debugger; let a = 10; // doesn't mean anything in regards to the issue. Run node-debug against the file. $ node-debug index.js Node Inspector v0.12.8 Visit…
Green
  • 28,742
  • 61
  • 158
  • 247
2
votes
1 answer

Node-Inspector will not stop at breakpoints when I refresh app

I have been trying to use the node-inspector for debugging in node. However, it only works initially when I start my app (npm start) and then enter (node-debug app.js) in a separate terminal tab. Once I set breakpoints everywhere and refresh the app…
andre
  • 1,660
  • 3
  • 19
  • 31