connect_debugger
Establish a debugging session by connecting to Chrome DevTools Protocol endpoints for Node.js, Chrome, or Edge to enable breakpoints, code stepping, and variable inspection.
Instructions
Establishes a new debugging session by connecting to a Chrome DevTools Protocol (CDP) endpoint. Use this to connect to Node.js (started with --inspect), Chrome, Edge, or other CDP-compatible runtimes. Returns a session_id that must be used in all subsequent debugging operations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| websocket_url | Yes | WebSocket URL for the CDP endpoint. For Node.js, this is typically ws://localhost:9229/{uuid}. For Chrome, use ws://localhost:9222/devtools/page/{pageId}. You can find available targets by visiting http://localhost:9229/json (Node.js) or http://localhost:9222/json (Chrome). | |
| session_name | No | Optional human-readable name for this debugging session. Useful when managing multiple concurrent sessions. |