Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLex Semenenko
9,906 PointsNo longer possible to start the server by using: nodemon --debug-brk src/app.js
As I understand the goal is to have nodemon and node-inspector work with a debugger. But the follwing command is not working
nodemon --debug-brk src/app.js
I am able to
- start my server with nodemon
- start node inspector
But I can't figure out how to use nodemon + node-inspector + debugger by typing just one command like this: nodemon --debug-brk src/app which does not work for me
5 Answers
Brigette Eckert
16,957 PointsSo just fyi I had this issue and refreshing the debugger page worked for me. Worth giving a try.
Sean Kelley
22,021 PointsI know it's a bit late to answer this, but in case anyone else has the issue... if you haven't restarted your terminal since installing nodemon and you open a new tab it won't recognize nodemon. You'll just need to close and re-open your terminal window, then you should be good to go.
Leigh Maher
21,830 PointsI'm having the same problem. Once you add the -brk part to --debug, the server stops running.
amadeo brands
15,375 Pointsnodemon src/app.js works fine the debuger also works for me when usting the folowing comand: node --debug src/app.js
Philip Howley
11,796 PointsI had a similar problem
got this error: Error: listen EADDRINUSE :::5858
what I was doing
ran $ node-inspector
in one terminal tab and then tried to run $ nodemon --debug src/app.js
in other terminal tab
how I got rid of error and got it to work
In the tutorial, we set a breakpoint in the console. I removed that (just click on it). I shut down my terminal and reopened it. I ran both node-inspector and nodemon --debug src/app.js in separate terminal tabs and it worked
Marcus Barnes
9,621 PointsMarcus Barnes
9,621 PointsI'm having the same issue