kiddkai / atom-node-debugger

A Nodejs Debugger For Atom
MIT License
265 stars 75 forks source link

Is there any way to use atom-node-debugger with es6 source-code #229

Open dhruvr opened 7 years ago

dhruvr commented 7 years ago

I am trying to use the atom-node-debugger on es6 code. Please have a look under settings babel1

When Ii start the debugger it works fine as below screen babel2

The problem is its debugging and giving line numbers as per es5 code. Let me explain. Check Image below babel12

As you can see the debugger is on line 13, but actually the debugger thinks its line 21,, which in term is right since es5 code of line 13 maps to line 21.Check Image below babel-new11

See line number 21.

So Is there a way to pinpoint exact line numbers? I hope I am able to explain my question, but still let me know in case

willyelm commented 7 years ago

have you tried atom-bugs-nodejs? it does support sourcemaps

Redsandro commented 7 years ago

@willyelm said:

have you tried atom-bugs-nodejs? it does support sourcemaps

I'm getting 404.

willyelm commented 7 years ago

@Redsandro oh the url was updated to xatom-debug-nodejs

nitrocode commented 7 years ago

@willyelm doesn't work for me. Just hangs