@hashseed Hey. Do you know where I could ask questions about the Chrome Devtools Protocol?
Specifically, I'm wondering whether there is any API that I could call to find out whether a script is still executing?
I have code with deferred promises like: ``` Debugger.paused(() => { // ... resolvePaused(output); }); while (true) { await Debugger.stepInto(); const output = await paused; // ... } ```
-
-
The problem is that my script will hang on `await paused` if the script has finished executing since `Debugger.paused` will no longer fire. Assuming there are no timers, is it possible to detect that execution of a script has finished by using the protocol?
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I guess not. The closest thing you can do here is to set a breakpoint at the end and wait for it?
-
The issue there I guess is 'where is the end if there is an asynchronous function call'.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.