Replies: 3 comments
-
It appears that awaiting a promise in the |
Beta Was this translation helpful? Give feedback.
0 replies
-
for reference: #51397 |
Beta Was this translation helpful? Give feedback.
0 replies
-
The await session.post("Debugger.resume") is likely executing asynchronously, and by the time it reaches that line, the debugger may have already resumed. try with synchronous function and check |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following code running in node v20.10.0
index.mjs
:When I run this with
node index.mjs
I get:isPaused
seems to be required here because by the time we get to end of theDebugger.paused
callback, the debugger is no longer paused andawait session.post("Debugger.resume")
throws an error saying that it can only be called when the debugger is paused...My best guess is that this is caused by the fact that I'm passing an async callback for
Debugger.paused
and for whatever reason the debugger continues?Beta Was this translation helpful? Give feedback.
All reactions