A bit more reading and I understood how dumb the question is. I'd like to validate if my current understanding is correct.
V8 is more than the shell binary that comes with the build. V8 provides extensive C++ APIs to compile Javascript source code from other programs (usually termed as embedding V8). So, to enable chrome devtools as debugging front-end I have to write a program (C++ wrapper or such) that communicates through web-sockets, debugging-protocol messages back and forth from the front-end to v8. Or did I get it completely twisted? If it did make sense, is there a project that has already implemented such standalone program that statically links to V8 and exposes a remote-debugging session? If nothing like that exists I'd like to pursue that direction and publish a simple project that spins up a V8 instance and starts a chrome remote-debugging session. Full-stack developer here, with almost no experience working with system software. Please let me know if I got it all completely wrong. Thanks, Joe On Sun, 19 May 2019 at 12:19, Joe Lewis <lewis.joe...@gmail.com> wrote: > I'm pretty sure that my understanding of the entire topic is fairly > limited and this is not going to be easy. Here's what I'm looking for: > > We're trying to re-use the product's javascript code across browser, > server & devices. We've settled on running v8 with Java bindings (J2v8) > for the server and android devices. > > While developing I'd like to setup a chrome devtools environment and test > my JS code as if it's running on V8 directly. I understand I can spin up a > chrome instance with --remore-debugging-port option and connect a > devtools instance to that chrome for browser and for node --inspect does > something similar. Is there an equivalent for a v8 shell? > > Is there any way I can do something like > > bash-$ ./d8 --remote-debugging-port=9222 > > and connect a chrome devtools instance to that shell? > > Can somebody point me in the right direction? > > -- > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to v8-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/v8-users/0bb21c0a-a1fa-4b70-8854-94f34061b4ba%40googlegroups.com > <https://groups.google.com/d/msgid/v8-users/0bb21c0a-a1fa-4b70-8854-94f34061b4ba%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/CAKKwF6PGLmhnTVEinbbeiwqE7LtTSW9bzwLu2i95%3Dp-nVxH2ug%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.