Questions tagged [node-inspector]

Node Inspector is a debugger interface for Node.js applications that uses the Blink Developer Tools (formerly WebKit Web Inspector).

Node Inspector is a debugger interface for Node.js applications that uses the Blink Developer Tools (formerly WebKit Web Inspector).

277 questions
102
votes
7 answers

Using node-inspector with Grunt tasks

Does someone used node-inspector with Grunt for application debugging? If not, Can you recommend a debugging tool for Grunt based apps? I'm working with nodejs for a server side app and I have Grunt to use separated tasks (this is because users can…
JuanO
  • 2,500
  • 3
  • 18
  • 20
69
votes
6 answers

debugging node.js with node-inspector

I'm trying to debug my nodejs app using node-inspector. But Google Chrome doesn't show the code. I'm using the following, Node.js : v0.10.26 Express : 4.0.0 Node Inspector : v0.7.3 Google Chrome version : 34.0.1847.131 This is what I'm doing to…
genwip
  • 1,027
  • 1
  • 12
  • 20
44
votes
5 answers

How to debug node js app with breakpoints and everything?

I've installed node-inspector just to find out that it doesn't support breakpoints :| What's the point in it at all, bearing in mind that on big part node code is asynchronous and you simply cannot follow it step by step?.. I'm definitely missing a…
jayarjo
  • 16,124
  • 24
  • 94
  • 138
40
votes
4 answers

Debugging Jest test cases using node-inspector

Is there a way to use node-inspector to debug unit tests with Jest? It would be nice to step through sometimes to see why tests are failing I have tried a few ways node-debug jest --runInBand from the as well as starting up the inspector first…
Ron
  • 1,875
  • 1
  • 18
  • 14
29
votes
8 answers

Running node-inspector alongside nodemon?

I'm currently using node along with nodemon. Then I got to thinking it might be sometimes nice to use an inspector with node so have started using node-inspector However, is it possible to run both at the same time? Normally to run nodemon I would…
Jamie Hutber
  • 26,790
  • 46
  • 179
  • 291
29
votes
7 answers

How to debug a basic node.js application (not http) on windows

I know how to debug http applications using node-inspector and iisnode. But can I use node-inspector to debug a non http node application, on windows? I tried: node debug test.js It says: debugger listening on port 5858 But opening…
Sylvain
  • 19,099
  • 23
  • 96
  • 145
25
votes
2 answers

launch dedicated DevTools for Node.js from command-line

I wondering how to launch "Open dedicated DevTools for Node" directly from the (windows or linux) command-line, without using chrome://inspect url then Open dedicated DevTools for Node button ? My aim is to automatically run debugger for…
21
votes
2 answers

Run node inspector with mocha

I can't seem to debug mocha scripts. I am able to run node with inspector like this node --inspect script.js. This then gives me a url to go to to debug, something like chrome-devtools://devtools/remote/... However, when I use mocha with this line…
Elliot
  • 1,893
  • 4
  • 17
  • 35
21
votes
3 answers

How to debug babelJS transpiled code using node-inspector?

I am trying to use node-inspector debug a nodeJS app running with babel-node. babel-node index.js --debug Node-inspector works but it shows the source maps in the transpiled es5 instead of es6
cuadraman
  • 14,964
  • 7
  • 27
  • 32
18
votes
6 answers

How to stop the node.js inspector / Chrome Debugger on SIGINT?

I have the following code to capture a ^C from the terminal and gracefully shutdown my Express app: process.on('SIGINT', () => { console.log('SIGINT received ...'); console.log('Shutting down the server'); server.close(() => { …
Naresh
  • 23,937
  • 33
  • 132
  • 204
17
votes
2 answers

How to use source maps in node js?

I stareted my node app with node index.js and got the following message: (node:10128) UnhandledPromiseRejectionWarning: TypeError: e.reduce is not a function at Module.te…
MarcS82
  • 2,065
  • 7
  • 29
  • 46
17
votes
2 answers

Node-Inspector not starting

First, I was having an issue installing node-inspector, I had to revert to installing version @0.7.5.. That installed globally on my machine, but now when I try to run node-inspector I get the error below. I find it odd that I haven't been able to…
gemart
  • 346
  • 1
  • 3
  • 18
17
votes
2 answers

How to avoid fast memory increase during scavenge gc?

I have an application built on restify. I have no memory leaks, however I have big memory growth during scavenge gc, then comes heavy weight mark-sweep gc and cleans the memory. It affects performance of my application. [2268] 266859 ms: Scavenge…
Vlad Miller
  • 2,255
  • 1
  • 20
  • 38
16
votes
4 answers

Using Node Inspector with multiple node processes

I started using Node Inspector to debug some of my Node applications. However, one thing i am not sure how to do is, once Node-inspector is attached to one Node app, how to detach and attach it to another Node app running on same box? How can I…
nodeuser
  • 235
  • 4
  • 9
15
votes
5 answers

How can I make node-inspector restart when node is restarted?

I use node-inspector a lot. When I edit my code and restart, I get the inevitable Detached from the target Error when a new process starts. I always have to go find the tab node inspector is on and restart it. I was wondering if I could avoid this.…
mikemaccana
  • 110,530
  • 99
  • 389
  • 494
1
2 3
18 19