I&#x27;ve never met a C or C++ debugger that handled this case nicely, unfortunately. Totally ridiculous, of course, because they could! They just never seem to.<p>Meeting snippets of code like that when debugging is a constant source of frustration for me, because I have to stop what I was doing, edit the code, rebuild, then get back to where I was. Particularly galling when the code in question is in a commonly-included header, and the subsequent build takes several minutes, and I was on a particularly productive-looking trail.<p>(The last project I worked on solved (?) this problem by performing so shamefully poorly in an unoptimised build that it effectively didn&#x27;t work. So you had to debug the optimised build. And so single-stepping at the source level just didn&#x27;t work properly anyway.)