Espresso icon indicating copy to clipboard operation
Espresso copied to clipboard

Access Inspector Protocol for Debugging non-Node JS

Open NichUK opened this issue 5 years ago • 1 comments

Would it be possible to implement and expose suitable send and receive functions so that a user of the non-ND version of Espresso could access Inspector Protocol for debugging purposes. My ideal would obviously be to be able to use ChromeDevTools in the same way that ND users can as seen in #39 however I'd be happy to start with very basic access to allow me to build a basic debugger.

The documentation at https://v8.dev/docs/inspector seems to imply that this should be fairly straight-forwards, however I haven't written any C++ for many years, so have no idea how to go about this myself.

I also believe that there's a good chance that if we could set up a suitable Inspector Protocol redirector, it could be integrated with Visual Studio's javascript/NodeJs debugging facility without too much work. Ref https://code.visualstudio.com/docs/nodejs/nodejs-debugging and I'd be happy to have a try at that.

NichUK avatar Mar 26 '19 12:03 NichUK

Sorry for late reply.

Thank you for your advice.

I will investigate this :)


good ref, see=>

https://github.com/Microsoft/nodejstools,

https://github.com/Microsoft/nodejstools/tree/master/Nodejs/Product/Nodejs/Debugger

https://stackoverflow.com/questions/47793335/embed-v8-engine-debug-using-chrome-devtools-and-inspector-api

https://gist.github.com/kevincennis/0cd2138c78a07412ef21

https://github.com/Oceanswave/V8SignalRDebugging

prepare avatar Apr 01 '19 11:04 prepare