Michael Grassman
Michael Grassman

Reputation: 1935

Prevent debugging projects that are added as reference in Visual Studio

I have a project that is auto generated. This project is referenced by my web app in visual studio. When i step through the code in debug mode the code from this project gets stepped into. Is there a way I can skip this code in debug mode.

I can't use System.Diagnostics.DebuggerStepThroughAttribute since the code will get replaced every time my datasource changes.

Thanks,

Upvotes: 0

Views: 61

Answers (1)

Pranay Rana
Pranay Rana

Reputation: 176956

i think you should remove pdb files of the project which you don't want to debug.

A program database (PDB) file holds debugging and project state information that allows incremental linking of a Debug configuration of your program.

similar question/answer : Can you debug a .NET app with ONLY the source code of one file?

Upvotes: 1

Related Questions