a break point to another .

Started by
3 comments, last by Evil Steve 17 years, 10 months ago
how to know how many functions / which functions are called from a break point to another break point? it is very usful in debug code.
Advertisement
I believe that there is no automatic way to do this, certainly not in Visual Studio.

Dave
The best you are probably going to get is either A adding debug code that logs every function entry (slow...)
or B if breakpoint 1 is on a top level function, and 2 is deeper down, then check the call stack.
a idea just jump out of my mind.

record the register (I remember some register push function name and function parameter before call function)and translate it to symbol(function name).

does it work?
That'll tell you what function you're in when you hit the breakpoint, but then the debugger will do that for you.

The only real way would be to log when you enter/exit each function, perhaps with some helper classes that'll automate things (Log in the constructor and destructor, and create a class instance at the start of every funvtion).

This topic is closed to new replies.

Advertisement