debug_launch
Launch a .NET program under
Instructions
Launch a .NET program under the debugger. Returns the resulting session state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| program | Yes | Path to the .NET program to debug (.dll or apphost executable). | |
| args | No | Command-line arguments to pass to the program. | |
| cwd | No | Working directory for the program (defaults to the program's directory). | |
| stopAtEntry | No | If true, the program pauses at entry instead of running until the first breakpoint. | |
| env | No | Environment variables to set on the debuggee. ASP.NET Core picks these up at startup — use ASPNETCORE_ENVIRONMENT to switch between Development/Staging/Production (the matching appsettings.{Env}.json auto-loads), or override anything in appsettings via the standard double-underscore syntax (e.g. ConnectionStrings__Default). These are session-scoped — no files are edited. |