Hello 
Thanks for you message.
For information, I havent succeeded to start the debug session after the 
script compilation. 

Le samedi 6 juin 2020 00:12:56 UTC+2, Elmi Ahmadov a écrit :
>
> As far as I remember. there is no a straight forward way to start a debug 
> session after the script is compiled. 
> See my simple v8 inspector example: 
> https://github.com/ahmadov/v8_inspector_example
>
> btw, if you find a way to achieve that, please share it, that'd be very 
> useful!
>
>
> On Tuesday, May 5, 2020 at 11:29:09 AM UTC+2, toto ttt wrote:
>>
>> Hi everybody
>>
>> I am currently integrating v8-inspector with standalone embedded v8 
>> application suing this code : https://github.com/hsharsha/v8inspector 
>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fhsharsha%2Fv8inspector&sa=D&sntz=1&usg=AFQjCNGThjo8GAZgPBCvOvwLMg-eU7Mokw>
>> After a while, I've succeeded to debug in ChromeDevTools the following 
>> simple scenario :
>> Case1: Start the websocket communication between V8 and CDT and all the 
>> necessary stuff for V8 inspector with the option 
>> PauseOnNextJavascriptStatement
>>            Create a V8 script
>>            Compile the script
>>            Run the script
>>
>> But another simple scenario is still ko, it's when I start the 
>> communication between V8 and CDT after the script has been compiled
>> Case2: Create a V8 script
>>            Compile the script
>>            Start the websocket communication between V8 and ... (idem)
>>            Run the script
>> Then in CDT, the script source is not displayed nor the source commands 
>> (F8, ...)
>> I guess it's related to the fact that in Case2, CDT never receives the 
>> following message from V8 
>> *       {"method":"Debugger.scriptParsed","params":{"scriptId":"6" ... *
>> then it will not ask to V8 for the script source 
>> *       {"id":6,"method":"Debugger.getScriptSource", ...*
>>
>> Does anyone knows if its possible to start a debug session with CDT after 
>> the script to debug have been compiled
>>
>> Thank you in advance for your help.
>> Aligre
>>
>

-- 
-- 
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/b85ff698-f364-44c7-9eae-654a0b04b27fo%40googlegroups.com.

Reply via email to