开发者

how to set break point on all function start in c++ file using visual studio 2008

开发者 https://www.devze.com 2023-03-31 06:55 出处:网络
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 f

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.

  1. Is it even possible with VS 2008 to set multiple break points?
  2. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消