Re: [v8-users] debugging protocol

2017-06-27 Thread DánielN
Though F5 does not do anything but if I sever the ws connection (close chrome) and reconnect the console does not work anymore (I cannot evaluate anything on it). I worked it around by sending {"id":0,"method":"Runtime.disable"} to V8 when the ws server detects disconnection. When CDT reconnect

Re: [v8-users] debugging protocol

2017-04-10 Thread DánielN
If I press F5 in Chrome nothing happens but this: CDT: {"id":34,"method":"Page.reload","params":{"ignoreCache":false}} V8: {"error":{"code":-32601,"message":"'Page.reload' wasn't found"},"id":34} V8 does not seem to understand "Log.*", "Page.*", "Emulation.*", "Rendering.*", "DOM.*", "CSS.*", etc

Re: [v8-users] debugging protocol

2017-04-03 Thread Zac Hansen
do you have it working if you connect with chrome then refresh chrome that it works? When I reconnect to the same embedded v8 app, I get a slightly different set of messages that don't properly set up the debugger the second time. Thanks. On Thursday, March 23, 2017 at 9:32:15 AM UTC-7, Dán

Re: [v8-users] debugging protocol

2017-03-23 Thread DánielN
Eventually I managed to sort it out. It does not seem to have huge interest about it but I share it anyway, someone might find it useful. Basically we have to create a web socket server along with our VM that we want to debug. Anything that comes through the ws connection (commands from CDT) has

Re: [v8-users] debugging protocol

2017-03-03 Thread DánielN
I have just started exploring debugging. I am lifting code (InspectorClient, InspectorFrontend) from d8 to my test project. I would like to connect my embedded v8 VM to CDT and debug it. Does anyone have some simple example that does that? It seems to me to be a long way and a big learning curv

Re: [v8-users] debugging protocol

2017-03-03 Thread Ben Noordhuis
On Fri, Mar 3, 2017 at 10:24 AM, Rishi Kumar wrote: > Is this mean, the code i wrote to interact with debug using these JSON based > protocol will no longer be work ? Removal of a feature tends to do that, yes. =) Your options are to either switch to the inspector API or stick with an old versio

Re: [v8-users] debugging protocol

2017-03-03 Thread Rishi Kumar
Hi, Is this mean, the code i wrote to interact with debug using these JSON based protocol will no longer be work ? Thanks, Rishi On Fri, Mar 3, 2017 at 2:51 PM, Ben Noordhuis wrote: > On Fri, Mar 3, 2017 at 10:10 AM, Rishi Kumar > wrote: > > Hi, > > > > I was reading and using the debugging

Re: [v8-users] debugging protocol

2017-03-03 Thread Ben Noordhuis
On Fri, Mar 3, 2017 at 10:10 AM, Rishi Kumar wrote: > Hi, > > I was reading and using the debugging protocol from this page > https://github.com/v8/v8/wiki/Debugging-Protocol . Its looks like it has > been removed from the github wiki. I dont know how to get that link page to > complete my work. I

[v8-users] debugging protocol

2017-03-03 Thread Rishi Kumar
Hi, I was reading and using the debugging protocol from this page https://github.com/v8/v8/wiki/Debugging-Protocol . Its looks like it has been removed from the github wiki. I dont know how to get that link page to complete my work. I need these protocol documentation which was clear and prop