roslyn-sdk icon indicating copy to clipboard operation
roslyn-sdk copied to clipboard

Prevent auto-closing of the csc.exe window after debugging with DebugRoslynComponent ends

Open kzu opened this issue 11 months ago • 0 comments

Sometimes the compiler output is useful in troubleshooting issues with an analyzer (i.e. a missing dependency or some other error that prevents hitting breakpoints in the analyer itself).

When debugging, there's no way to prevent the launched csc from closing right after it finishes, making inspecting its output impossible.

I also tried the following without success:

{
  "profiles": {
    "Roslyn": {
      "commandName": "DebugRoslynComponent",
      "targetProject": "..\\StructId.Tests\\StructId.Tests.csproj",
      "commandLineArgs": "--wait"
    }
  }
}

NOTE: the debugger component does not honor the IDE setting to not close the console when debugging stops either:

Image

kzu avatar Nov 22 '24 18:11 kzu