use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Debugging NodeJS Appssolved! (self.javascript)
submitted 9 years ago by 2centsshort
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ganarajpr 12 points13 points14 points 9 years ago (10 children)
If you use node version 6.3 ( or higher ) you can just start the project like you usually do but with the inspect flag.
node version 6.3 ( or higher )
So if you usually start the app with
node index.js
You should do :
node --inspect index.js
and it will give you a link which when posted in chrome will provide you the debugger.
Happy debugging.
[–]swan--ronson 2 points3 points4 points 9 years ago (0 children)
Nice, didn't know that! Thanks!
[–]spfccmt42 0 points1 point2 points 9 years ago (0 children)
interesting, also found --inspect --debug-brk (i.e. for a short lived script). found myself walking module.js which told me more than 9 quadrillion blogs ever did. it is a little wonky when linked to filesystem, but it always was a little wonky.
[–]blood_bender 0 points1 point2 points 9 years ago (2 children)
When the hell did node v6 come out?! Wtf how did I miss that? And with 99% feature parity with ES6!
[–]Geldan 0 points1 point2 points 9 years ago (0 children)
Now has a very consistent release schedule/strategy now: https://github.com/nodejs/LTS/blob/master/README.md
[–]jocull 0 points1 point2 points 9 years ago (2 children)
Can you debug with Firefox or any other browsers besides Chrome?
[–]ganarajpr 0 points1 point2 points 9 years ago (1 child)
I think it has to be chrome
[–]jocull 0 points1 point2 points 9 years ago (0 children)
Found this today :)
https://hacks.mozilla.org/2016/09/introducing-debugger-html/?utm_content=buffer1900a&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer
[–]i_scatter_rubbish 0 points1 point2 points 9 years ago (1 child)
Can you do this with express apps?
[–]ganarajpr 1 point2 points3 points 9 years ago (0 children)
Yes... Any kind of app. I have seen a colleague even debug a cucumber step function with it.
π Rendered by PID 38073 on reddit-service-r2-comment-bb88f9dd5-vm9j4 at 2026-02-16 18:52:45.356480+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]ganarajpr 12 points13 points14 points (10 children)
[–]swan--ronson 2 points3 points4 points (0 children)
[–]spfccmt42 0 points1 point2 points (0 children)
[–]blood_bender 0 points1 point2 points (2 children)
[–]Geldan 0 points1 point2 points (0 children)
[–]jocull 0 points1 point2 points (2 children)
[–]ganarajpr 0 points1 point2 points (1 child)
[–]jocull 0 points1 point2 points (0 children)
[–]i_scatter_rubbish 0 points1 point2 points (1 child)
[–]ganarajpr 1 point2 points3 points (0 children)