Debugging¶
wavexis provides debugger commands via the debug group (CDP — Chrome only).
Set a breakpoint¶
Set a conditional breakpoint:
wavexis debug breakpoint https://example.com \
--url https://example.com/app.js --line 25 --condition "x > 100"
Set a function breakpoint¶
Stepping¶
wavexis debug step-over https://example.com
wavexis debug step-into https://example.com
wavexis debug step-out https://example.com
Pause and resume¶
Remove a breakpoint¶
Get event listeners¶
wavexis eval https://example.com -e "
JSON.stringify(
getEventListeners(document.querySelector('button'))
)
"
See also¶
Run wavexis debug --help for the full list of debugger sub-commands
(callstack, disable, enable, listeners, source, and more).