Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All

I am experimenting with open source code in VS 2008 C++.

I insert breakpoints at different places in the code to understand what is going on.

Is there a way for me to observe the different functions that have been called at each breakpoint?

i.e. WinMain
Function A
Function B

etc?

without inserting debug code?
Posted
Comments
Richard MacCutchan 13-Oct-10 5:37am    
If you are using the debugger then you just need to set a breakpoint at the beginning of the function and single step through it. Or did I misunderstand your question?

Opening the call stack window will give you the current execution path to see where the call to this function has come from...
 
Share this answer
 
You can also add logging through OutputDebugString().
It will give you the Trace for all the functions. But for that you need to make call to it exclusively.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900