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 trial

JavaScript Express Basics (2015) Developing Express Apps Like a Boss Interactive Debugging and Exploratory Programming

No 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

I'm having the same issue

5 Answers

So just fyi I had this issue and refreshing the debugger page worked for me. Worth giving a try.

Sean Kelley
Sean Kelley
22,021 Points

I 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
Leigh Maher
21,830 Points

I'm having the same problem. Once you add the -brk part to --debug, the server stops running.

amadeo brands
amadeo brands
15,375 Points

nodemon src/app.js works fine the debuger also works for me when usting the folowing comand: node --debug src/app.js

I 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