Linked Questions
49 questions linked to/from How do I debug Node.js applications?
4
votes
1
answer
2k
views
How to execute code from Node.js server command line? [duplicate]
I'm just starting with Node.js but I have experience with client-side JavaScript and PHP/Apache.
In your browser you can execute JS code from the developer console at any time. You can manipulate ...
7
votes
0
answers
395
views
Can you debug Karma test runner? [duplicate]
I'm new to Karma and node.js. I am trying to run my Karma test but I get an error with an unhelpful message.
Is there any way I can debug my test to see where the problem is?
2
votes
3
answers
166
views
How can I debug Node.js [duplicate]
I'm currently new to Node.js, as I had previous experience with PHP server before, I know that I can debug the server in PHPStorm that supports breakpoints and I can follow the process step by step.
I'...
0
votes
0
answers
79
views
Node JS Application debugging [duplicate]
Hi I am new to to NODE JS. My Application is using express,grunt, mocha also. I just use grunt command and all the initial setup for running files is set. Now in one of the files for authentication, I ...
772
votes
13
answers
327k
views
How to set a JavaScript breakpoint from code in Chrome?
I want to force the Chrome debugger to break on a line via code, or else using some sort of comment tag such as something like console.break().
70
votes
17
answers
46k
views
IDE and Debugger for node.js [closed]
I am going to start building project in node.js (was working in PHP before), What is the IDE, Debugger and Helping Tools for node.js, to help improvement while coding ?
151
votes
5
answers
146k
views
Testing javascript with Mocha - how can I use console.log to debug a test?
I am using the javascript test-runner "Mocha".
I have a test that is failing, so I would to debug it using console.log.
But when the tests are run, there is no output (only the test results from ...
48
votes
5
answers
61k
views
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 ...
41
votes
7
answers
23k
views
How to PROPERLY debug node.js with node inspector?
I have an app built in node.js and I use the node inspector in order to debug.
But it's quite hard because of this:
My breakpoints are never saved after I restart the server
I cannot put a breakpoint ...
22
votes
4
answers
7k
views
Cannot understand node.js
From someone with few experience in JS, what do you recommend for learning Node.js?
I read a lot in the forum about event driven, non-blocking , async, callbacks, etc but I don't know what's that!
...
27
votes
4
answers
22k
views
Can I profile NodeJS Applications using Visual Studio Code?
I can successfully connect the VS Code debugger to my remote NodeJS target using the Chrome protocol. I believe that same protocol supports profiling and performance measurements as it is easy to do ...
24
votes
3
answers
39k
views
How to call a JavaScript function on a web page rendered by Electron?
I'm trying to write a wrapper for Twitter using Electron (formerly Atom Shell).
My main.js file (it looks almost identical to the "Hello World" example, I just changed it in one place):
var app = ...
19
votes
5
answers
9k
views
How do I debug node.js errors when my code is nowhere in the stack trace?
And actually, I don't fully understand why my code is not in the stack trace, if node is single threaded. Maybe I'm fundamentally misunderstanding, something, but why does my application sometimes ...
Jer's user avatar
- 5,708
25
votes
5
answers
22k
views
How to detect and measure event loop blocking in node.js?
I'd like to monitor how long each run of the event loop in node.js takes. However I'm uncertain about the best way to measure this. The best way I could come up with looks like this:
var interval = ...
23
votes
2
answers
22k
views
Nodejs process hang, how could I debug it or collect dump?
my nodejs process which was running at Linux, now it is hang and the CPU is 100%. Is there anyway I can do to debug it and find the reason? Do I need to collect dump and how? Thanks.