Debugging

 

Documentation is now available on GitHub >>

 

 

3ab24f981beb2483aa61f17584846fa1c2cbd116c9f9770e84dabc48f1ab72a1

Last edited May 6, 2015 at 7:43 AM by mousetraps, version 17

Comments

onelaview May 19, 2015 at 2:01 PM 
Hi there,

How can I start debugging with currently running node.js app?
I tried several ways without success.
I started

```
node.exe --debug=<port_number> <javascript_file>
```

and then use `Attach to Process` in Visual Studio 2013, select `Node.js Debugging` as the code type to attach to my running `node.exe` process. No breakpoints hit...

Any suggestion?
Thanks.

novaleaf Feb 5, 2015 at 2:43 AM 
I can confirm that 0.10.36 resolves the debugging issues found in 0.10.25 (it could not break on exceptions. now it does)

take_tanaka Aug 7, 2014 at 6:06 AM 
debug is working for vs2013 + windows 8.1 x64.
Setting was required as shown below.
Node.exe arguments: --debug=5858 c:\sample\ExpressApp1\ExpressApp1\app.js

hzj629206 Jun 14, 2014 at 9:14 AM 
debug is not working for me too. vs2013 + windows 8.1 x64

lihongzhai May 8, 2014 at 7:06 AM 
Not work on VS2012 + Node x64 v0.10.28 on Windows 8.1 x64.

pengo Apr 10, 2014 at 1:10 AM 
I did not work NTVS Debugger.
But, it was working when you change the character code.

Try UTF-8N or Others.

Thanks.

Maxes Apr 9, 2014 at 4:36 AM 
NTVS debugger not work . (BUG)
I`m Vs2013 + Node X64 + Windows 8.1 x64 ..

Only Ctrl + F5 to realse run.

Thanks ..

lyphtec Dec 16, 2013 at 6:04 AM 
Hi,

I can't seem to get debugging working? I created a simple Express App from the template. Set a breakpoint in app.js. Press F5. It just builds the project and nothing happens. However, if I do a Ctrl+F5 (Start without debugging) - a Node command window pops up, a browser window opens and the Express app appears to be running fine.

I'm running VS2013 + Node x64 v0.10.23 on Windows 8.1 x64.

Any ideas?

Thanks.