Skip to content

NodeJS CLI debugger based on Chrome DevTools Protocol

License

Notifications You must be signed in to change notification settings

sukovanej/node-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TODO

  • set max timeout for blocking websocket calls
  • continue-to command - continue to a position
  • ns command - combination of next and show

CDT Protocol notes

Enable debugger

{"id": 1, "method": "Debugger.enable"}

Resume debugger

{"id": 1, "method": "Debugger.resume"}

Pause debugger

{"id": 1, "method": "Debugger.pause"}

Run if waiting for debugger

{"id": 1, "method": "Runtime.runIfWaitingForDebugger"}

Get possible breakpoints

{"id": 1, "method": "Debugger.getPossibleBreakpoints", "params": { "start": {"lineNumber": 0, "scriptId": "100"}}}

Step over

{"id": 1, "method": "Debugger.stepOver"}

Get script source

{"id": 1, "method": "Debugger.getScriptSource", "params": { "scriptId": "138"}}

Step into

{"id": 1, "method": "Debugger.stepInto"}

Chromium devtools comm

{"id":1,"method":"Runtime.enable","params":{}}
{"id":2,"method":"Debugger.enable","params":{"maxScriptsCacheSize":100000000}}
{"id":3,"method":"Debugger.setPauseOnExceptions","params":{"state":"none"}}
{"id":4,"method":"Debugger.setAsyncCallStackDepth","params":{"maxDepth":32}}
{"id":1,"result":{}}
{"id":5,"method":"Profiler.enable","params":{}}
{"id":6,"method":"Debugger.setBlackboxPatterns","params":{"patterns":[]}}
{"id":7,"method":"Runtime.runIfWaitingForDebugger","params":{}}

About

NodeJS CLI debugger based on Chrome DevTools Protocol

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages