Skip to content

VS Code does not call resolveDebugConfigurationWithSubstitutedVariables #188979

@isadorasophia

Description

@isadorasophia
  • VS Code Version: 1.80.1
  • OS Version: Windows_NT x64 10.0.19045

Steps to Reproduce:

  1. Install C# dev kit
  2. Clone C# extension and start debugging the extension
  3. Create a .NET console app (I tried .NET 6 or .NET 7)
  4. Open Program.cs and click F5. Select C#:
    image

Expected
The debugger gets queried for its configuration variables and start debugging.

Actual
C# extension registers two debug providers, but the second provider, BaseVsDbgConfigurationProvider.resolveDebugConfigurationWithSubstitutedVariables (which implements vscode.DebugConfigurationProvider) is never called.

Remarks

  • If you have a launch.json with a profile type specified (only one provider is used), step 5 is called.
  • If you start debugging from the project in Solution Explorer window (from C# dev kit extension, so only one provider is used), step 5 is called.

This is the launch request for the repro scenario:

-> (C) {"command":"launch","arguments":{"name":"C#: ConsoleApp47","request":"launch","type":"coreclr","launchConfigurationId":"TargetFramework=;ConsoleApp47"}

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions