attach_debug
Attach to an already-running .NET process for debugging when restart isn't possible, e.g., production services. Expect incomplete stack traces due to no justMyCode support.
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)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"process_id": "<process_id>"
},
"name": "attach_debug"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| process_id | Yes |