Skip to content

Fix debug aspnet apps#55

Merged
ozzafar merged 6 commits intomicrosoft:mainfrom
DanielCarmingham:fix-debug-aspnet-apps
Apr 25, 2026
Merged

Fix debug aspnet apps#55
ozzafar merged 6 commits intomicrosoft:mainfrom
DanielCarmingham:fix-debug-aspnet-apps

Conversation

@DanielCarmingham
Copy link
Copy Markdown
Contributor

This PR fixes parsing launch.json, running .csproj and debugging coreclr (.net) projects

Fixes #54

The regex-based comment stripping was matching // inside string
values (e.g. "https://localhost:..."), corrupting the JSON and
causing parse failures. Replace with jsonc-parser which correctly
handles comments, trailing commas, and strings containing //.
Without this, language detection says .csproj is python which doesn't work.
The coreclr branch bypassed vscode.debug.startDebugging and instead
used testing.debugCurrentFile, which ignores the user's selected
launch configuration. This caused unexpected behavior when launching
C# projects via MCP. Use the standard debug launch path for all
config types.
@ozzafar ozzafar merged commit a3e2596 into microsoft:main Apr 25, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Start debug command fails to start c# ASP.NET app for multiple reasons

2 participants