Debugging¶
wavexis provides debugger commands via the CDP bridge.
Set a breakpoint¶
Set a conditional breakpoint:
Set a function breakpoint¶
Stepping¶
Pause and resume¶
Remove a breakpoint¶
Get event listeners¶
wavexis eval https://example.com -e "
JSON.stringify(
getEventListeners(document.querySelector('button'))
)
"
Combined with serve mode¶
# Start serve mode
wavexis serve --port 8080
# Set breakpoint via API
curl -X POST http://localhost:8080/debug/breakpoint \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "line": 25}'
# Step over
curl -X POST http://localhost:8080/debug/step \
-H "Content-Type: application/json" \
-d '{"action": "over"}'