Jump to content
  • Advertisement
Sign in to follow this  
derek7

a break point to another .

This topic is 4511 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
I believe that there is no automatic way to do this, certainly not in Visual Studio.

Dave

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!