rubyjs / mini_racer

Minimal embedded v8
MIT License
594 stars 93 forks source link

Remote Debugging JS #265

Open nikolai-b opened 2 years ago

nikolai-b commented 2 years ago

I'd really like access to a debugger when mini_racer is running the JS code. I tried passing

MiniRacer::Platform.set_flags! :debug_code, :expose_inspector_scripts
# and
MiniRacer::Platform.set_flags! :inspect

as in a ideal world :unicorn: :sun_with_face: I'd be able to write debugger and then be able to connect to node remotely and poke around. Just checking if anyone thinks this is possible and might have ideas on how to do it?

tisba commented 1 year ago

I'm not sure if the debugger is part of V8 or something that Chrome, Chromium etc are providing on top…