node-inspector / node-inspector

Node.js debugger based on Blink Developer Tools
BSD 2-Clause "Simplified" License
12.66k stars 716 forks source link

Node Inspector is not pausing on the breakpoints on V 9.3.0 #1032

Open mvgadagi opened 6 years ago

mvgadagi commented 6 years ago

Hi All,

Currently, I am using Node V 9.3.0 and While debugging the node-inspector with Chrome Dev Tool, The request is not paused on the breakpoints, Can you please help me here

Steps to reproduce

  1. killall node
  2. node app.js
  3. node --inspect-brk app.js

I have below code line in the app.js

const users = require('./routes/users');
app.use('/users', users);

And I have below code in users.js

router.get('/profile', (req, res, next) => {
    res.send("User Profile");
});

Now I put the breakpoint on the line router.get('/profile', (req, res, next) => { and run page the with http://localhost:3000/users/profile , Page loads immediately without pausing. Can you please take a look

hustxiaoc commented 6 years ago

Sorry , Node Inspector is not compatible with Node(>=8.x), please use --inspect instead.

anmolagar commented 5 years ago

breakpoint are not working any more with v11.1.0 i am using --inspect