Skip to main content
Glama
thebtf

netcoredbg-mcp

by thebtf

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

TableJSON Schema
NameRequiredDescriptionDefault
process_idYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses significant limitation: netcoredbg does not support justMyCode in attach mode, leading to unreliable debugging and incomplete stack traces. Notes this is an upstream limitation. Annotations only include openWorldHint:false, so description adds valuable behavioral context beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Efficiently structured with strong front-loaded warning, then limitation, then usage conditions, then parameter. Every sentence adds value; no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the tool's purpose, limitations, and parameter completely for a single-param tool with no output schema. Could mention that after attaching, other debug tools become usable, but the context of sibling tools makes this implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

For the only parameter process_id, description explains it is a PID of an already-running .NET process and emphasizes NOT for normal debugging. This adds meaning beyond the schema (which only defines it as integer).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool attaches to an already-running .NET process for debugging, distinguishing it from start_debug. Verb 'attach' and resource 'debug process' are specific.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly advises against using this tool ('AVOID - Use start_debug instead'), details when it might be necessary (must debug an already-running process that cannot be restarted), and warns against using it when start_debug fails. Also references escape hatch for further options.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thebtf/netcoredbg-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server