I would like to be able to skip over certain parts of my code when I set breakpoints. For example, I have a code block which iterates 52 times to create a deck of cards. This is working properly and I would rather not have to hit F11 to keep stepping through that block. Is there anyway for me to “skip” this so that the debugger just goes on to the next method call?
Language and IDE is C# in VS 2008.
If it is an option, you could move that code into a function and apply the [DebuggerStepThrough] attribute to the function so that it will always be skipped during debugging
Like so:
Now in your code, when you step through, the debugger will not go to the method and just proceed to the next line