Skip to content

Fix debug aspnet apps#55

Open
DanielCarmingham wants to merge 3 commits intomicrosoft:mainfrom
DanielCarmingham:fix-debug-aspnet-apps
Open

Fix debug aspnet apps#55
DanielCarmingham wants to merge 3 commits intomicrosoft:mainfrom
DanielCarmingham:fix-debug-aspnet-apps

Conversation

@DanielCarmingham
Copy link
Copy Markdown

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.
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

1 participant