babel-node-debug icon indicating copy to clipboard operation
babel-node-debug copied to clipboard

Debugging es6 file does not pause on start

Open blake-regalia opened this issue 9 years ago • 1 comments

Loading the inspector requires "pausing" before I can hit "resume", which then pauses on first line with --debug-brk option.

test.js

(function(b) {
    let a = b+'!';
    debugger;
})('test');
$ bode-debug --no-preload --cli --debug-brk test.js
screen shot 2016-02-05 at 12 20 30 pm

Not a critical component, but a bit redundant to have to pause/resume instead of just resume from debug start.

blake-regalia avatar Feb 05 '16 20:02 blake-regalia

Yes. It's super annoying. I don't know why that is, but the whole toolchain is rather obtuse.

I'm going to try and set the breakpoint through the front-end instead of V8's Debugging Protocol, so it functions more closely to a non-source-mapped file.

CrabDude avatar Feb 08 '16 23:02 CrabDude