Replies: 0 comments 3 replies
-
| 
         It appears that awaiting a promise in the   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| 
         for reference: nodejs/node#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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following code running in node v20.10.0
index.mjs:When I run this with
node index.mjsI get:isPausedseems to be required here because by the time we get to end of theDebugger.pausedcallback, 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.pausedand for whatever reason the debugger continues?Beta Was this translation helpful? Give feedback.
All reactions