Using simultaneously with a breakpoint debugger.

42 views
Skip to first unread message

Eugene Q

unread,
Jul 14, 2015, 6:26:37 PM7/14/15
to theseus...@googlegroups.com
Hi guys,

I'm currently loving Theseus, but I still have some problems where I need to set a breakpoint and trace through.
I'm currently having to kill my app, start node with --debug, trace trhough and then start the app with node-theseus.
Is it possible to use Theseus with breakpoints? I've tried searching around the GitHub page, StackOverflow and forums, but with no luck so far.
Am I missing something?

Thanks.

jobrandt

unread,
Jul 18, 2015, 4:09:58 PM7/18/15
to theseus...@googlegroups.com
Hi Eugene,

Glad to hear you're loving Theseus.

Unfortunately, you're not missing anything. Using Theseus and using standard breakpoint debugging are not compatible activities at the present time. You've gotta pick one or the other for a given debugging task.

The reason the two are incompatible is that Theseus does some rewriting of your code in order to track what's happening at runtime. So, the code that's executing actually looks a bit different, and is thus incompatible with breakpoint debugging in v8.

Tom Lieber (the main developer of Theseus) started some work on creating source maps to address this issue. However, I don't believe that work's been finished. Hopefully he'll see this message and chime in.

Best,
-- Joel
Reply all
Reply to author
Forward
0 new messages