pmed / v8pp

Bind C++ functions and classes into V8 JavaScript engine
http://pmed.github.io/v8pp/
Other
898 stars 120 forks source link

Remote debugging #25

Closed xaxxon closed 7 years ago

xaxxon commented 7 years ago

Did you ever do any work on setting up remote chrome debugging? It was removed from v8 a while ago and some projects like node have their own implementations but I don't see anything that seems pluggable into an arbitrary embedded v8 instance.
If not , if you're interested in collaborating on it let me know. It looks like a lot of work. I would probably yse boost::asio for the socket server and then start doing packet traces to see the order of which Jason requests are used by the protocol and implement responses in that order.

pmed commented 7 years ago

I'm actually debug mostly in C++ modules, and never used JS debugger. So I'm afraid I can't help here.

There was a related issue: https://github.com/pmed/v8pp/issues/23#issuecomment-227076432. I've just checked V8 sources (version 5.4) and that Debug class is still there.

xaxxon commented 7 years ago

yeah, you have to use the debug class to implement the commands from the chrome debugger.

I'm making decent progress. I'll shoot you a link when it's a bit more fleshed out. I only have like... 4-5 of the commands implemented so far, not enough to do anything

On Thu, Sep 29, 2016 at 1:17 AM, Pavel Medvedev notifications@github.com wrote:

I'm actually debug mostly in C++ modules, and never used JS debugger. So I'm afraid I can't help here.

There was a related issue: #23 (comment) https://github.com/pmed/v8pp/issues/23#issuecomment-227076432. I've just checked V8 sources (version 5.4) and that Debug class is still there.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pmed/v8pp/issues/25#issuecomment-250400983, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIycgLNFPygTge6Scg9sPkFLb9ismRxks5qu3QSgaJpZM4KINmj .

xaxxon commented 7 years ago

I made a (5m) movie showing debugging embedded javascript from the chrome debugger. It's not perfect, but it's a pretty cool proof of concept. https://www.youtube.com/watch?v=qkP49-f_eRg

pmed commented 7 years ago

Cool, thanks for sharing the results :)