Files
Siegfried Pammer 48b8684646 Launch ILSpy from VS Code via dotrush, with a plain fallback
dotrush resolves the active target and owns the build task, so the launch and
attach configurations go through its commands. Those commands only exist when
the extension is installed, so a third configuration builds and launches the
apphost directly for setups without it.

Assisted-by: Claude:claude-opus-5[1m]:Claude Code
2026-08-17 09:35:25 +02:00

37 lines
1.4 KiB
JSON

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Debugger (launch)",
"type": "coreclr",
"request": "launch",
"program": "${command:dotrush.activeTargetPath}",
// ILSpy is single-instance: without this a launch forwards its arguments to an
// already-running ILSpy and exits before Avalonia starts, so no breakpoint is hit.
"args": ["--newinstance"],
"preLaunchTask": "dotrush: Build"
},
{
// Fallback for setups without the dotrush extension: builds and launches ILSpy
// directly, no ${command:dotrush.*} resolution involved.
"name": "ILSpy (no dotrush)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/ILSpy/bin/Debug/net10.0/ILSpy.dll",
"args": ["--newinstance"],
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Debugger (attach)",
"type": "coreclr",
"request": "attach",
"processId": "${command:dotrush.pickProcess}"
}
]
}