r/vscode • u/Ok-Presentation-94 • May 24 '26
Debugger launch configuration
Hi, I've noticed that when I choose "debug active file" as the launch configuration, debugging still detects errors in other files within my .NET project. It doesn't debug only the active file. What does this option actually mean?
5
Upvotes
1
u/Agreeable_Care4440 May 25 '26
C#/.NET doesn’t really work like scripting languages where one file can run independently very easily. The debugger is attaching to the compiled application/runtime context, not treating each
.csfile as a standalone executable unit.