how to set break point on all function start in c++ file using visual studio 2008
I have more than 100开发者_运维百科 files as source. Each of these files are atleast 1000 lines. In order to debug the sequence of calls, I want to put a break point on all the functions for all the files. There are plenty of COM Pointers in all the files.
- Is it even possible with VS 2008 to set multiple break points?
- I know this is a crazy idea, any optimization suggestion?
You might be able to use a custom prologue to add a machine debug break to every function in the compilation unit.
http://msdn.microsoft.com/en-us/library/6xy06s51(v=vs.80).aspx
maybe I'm not understanding you correctly, but have you tried using the debug features "Step Into (F11)", "Step Over (F10)", and "Step Out (Shift+F11)"? That would effectively do the same thing I would imagine since you want to stop at each function call anyway.
精彩评论