Visual Studio Not Stepping Through

I was working on a project and stepping through using the Visual Studio debugger.

When I reached a breakpoint, I wanted to step through to a method in a created class.  But the debugger was not stepping through the code or hitting the breakpoints in the method I wanted to debug.

Turns out that the class I wanted to debug was a partial class.  There was another partial class that was generated with xsd.exe.  One of the attributes of the class was


This causes the debugger to step over the class.  Even other partial classes.

To enable the step through debugging I had to comment out the attribute.

Lost a lot of hair over why it wasn't stepping through
Print | posted on Tuesday, June 9, 2015 1:00 PM