views:

19

answers:

1

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,

+1  A: 

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 : http://stackoverflow.com/questions/107179/can-you-debug-a-net-app-with-only-the-source-code-of-one-file

Pranay Rana
Thanks I added cd $(TargetDir)del FileName.pdbto the post build commands to do this automatically
MIchael Grassman