build with -g:
void foo()
{
}
void fun(bool b)
{
if (b) // when stepping here, debugger jumps to end of function
return; // cannot set breakpoint here
foo();
}
void main()
{
fun(true);
}
tested on Windows only, but unlikely to be platform specific.
Comment #1 by turkeyman — 2019-06-20T06:14:22Z
Oh yeah, this is REALLY important stuff!
Comment #2 by robert.schadek — 2024-12-13T19:04:04Z