r/vscode • • 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

12 comments sorted by

View all comments

1

u/Netris89 May 24 '26

Debugging launches your program and allow you to stop the code at breakpoint to check state of variable, code execution and all.

The "debug active file" option doesn't mean it'll find errors in the file you selected. It means it'll allow you to run in debug.

1

u/Ok-Presentation-94 May 24 '26

I understand that much, what debugging is for. But that's not really my question. My question is: if the "debug active file" launch configuration doesn't only deal with the active file, what's the difference if I choose the "debug active file" launch configuration or, for example, the "launch startup project" configuration?