I don't know of a similar way in unmanged C++. Others on the forum might know of special ways. Also, folks on the debugger forum might have more details.
One workround is when debugging, open the disassembly window, then set the breakpoint at the entry point of operator()() (just before the "call ..." instruction). But you have to set it every time you debug your program. You can set the breakpoint in the source at "for_each" to ease the process.
VC++ Debugging - skip standard library code?
hpassant
I understand that. What I was hoping for was automatic skipping of standard library source code. For example, if I call
std::for_each(some_container.begin(), some_container.end(), MyFunctor());
where MyFunctor has operator()() defined, I would like the debugger to skip all the code until operator()() is called.
You can do this with C# code by including the
[System.Diagnostics.DebuggerStepThrough()] attribute. I was wondering if there is a way to do this in unmanaged C++ code.
Thanks,
Kevin
apuyinc
I don't know of a similar way in unmanged C++. Others on the forum might know of special ways. Also, folks on the debugger forum might have more details.
Thanks, Ayman Shoukry VC++ TeamRay1127
I believe F10 makes you step over any function calls and F11 makes you step into the calls.
Thanks, Ayman Shoukry VC++ TeamRoman2005
BKStrelioff
http://blogs.msdn.com/andypennell/archive/2004/02/06/69004.aspx
I haven't actually tried this in VC++ 2005, but it did work in VC++ 6.0.
Mickey G
Thanks for the tip.
This isn't exactly what I was looking for, but is a useful tip nonetheless.
Thanks again,
Kevin
Per Lindblom
Thanks!
This looks like it may be the ticket. I haven't had a chance to try it out yet, but I will in the next few days.
Thanks again,
Kevin