I have code with deferred promises like: ``` Debugger.paused(() => { // ... resolvePaused(output); }); while (true) { await Debugger.stepInto(); const output = await paused; // ... } ```
@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?
-
-
Show this thread
-
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 thread
End of conversation
New conversation -
-
-
You can collect a stack trace to see whether there is a script executing, I guess.
-
`Debugger.getStackTrace` seems to need a `stackTraceId`? Context: I'm trying to iterate through a program step-by-step until it terminates while observing state changes.https://twitter.com/sebinsua/status/1264235425390043137 …
End of conversation
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.