When I set up a breakpoint, it works, but when I try to step to next line of code, it leaves the debug mode (as though I clicked continue button).
A:
This is pretty difficult as we don't know enough detail. 1. Are you sure you are pressing F10 or Step to step to the next line? 2. Is this piece of code unreachable? 3. Is the code in another assembly that might be out of date?
PieterG
2010-07-30 10:52:30
Yes, everything I press F10, code is reachable and it's code in the same assembly. I can simulate stepping by inserting breakpoints in the fly (I stop at breakpoint, then insert a breakpoint a few lines later, and so on)
Bogi
2010-07-30 11:06:19
A:
Yes, this is a documented problem with the debugger in VS2008 SP1. There's a hotfix available that fixes this particular problem, as well as several debugger issues when debugging multi-threaded code. Recommended, download is here.
Hans Passant
2010-07-30 14:12:36