attach_debug
Attach to an already-running .NET process for debugging when restart is not possible, though with limitations like incomplete stack traces.
Instructions
AVOID - Use start_debug instead. Attach to already-running process (LIMITED).
LIMITATION: netcoredbg does NOT support justMyCode in attach mode (only in launch). This is an UPSTREAM limitation that CANNOT be fixed by this MCP server. Result: stack traces will be incomplete/empty, debugging will be unreliable.
ONLY use this if you MUST debug an already-running process that you cannot restart (e.g., production service, container you cannot control).
For normal debugging, ALWAYS use start_debug which has full functionality. If start_debug fails with build errors, fix the build - don't switch to attach.
Escape hatch: see the dap-escape-hatch prompt for unwrapped DAP requests.
Args: process_id: PID of an already-running .NET process (NOT for normal debugging)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| process_id | Yes |