Preventing VC++ from stepping into a function
I remember reading somewhere that it is possible to tell Microsoft VC++ not to step into specific functions even if you press F11 during debugging. Does this ring a bell to anyone? I remember you have to write the function''s name in some file that VC++ uses for that purpose, but that''s about it. Can someone refresh my memory or point me to a link where this is discussed?
Thanks!
F10, i beleive is "Step-Over" which will skip breakpoints for
functions that leave the current scope.
functions that leave the current scope.
No no, I''m not talking about a keyboard shortcut, it''s really a file that you can modify to instruct VC++ to never step into functions you specify. Kind of like it does with Win32 API calls. If you press F11 when you are about to call CreateFile() for example, you won''t step into any code (of course since it''s not available to us, but I''m talking about the behavior here...)
Any idea?
Any idea?
I don''t know the answer to your question, but why would you
need it when F10 (Step-Over) already does that for you?
Kami no Itte ga ore ni zettai naru!
need it when F10 (Step-Over) already does that for you?
Kami no Itte ga ore ni zettai naru!
Suppose I have this:
std::string strProperty = pObject->GetProperty()->AsString();
I might want to step into the AsString() function to debug it, but the GetProperty() function being very simple, I don''t want to have to go into it first before going into the AsString() function when I press F11.
This is a simple example, but I have more complex ones where the ability to not step into specified functions would be very useful.
std::string strProperty = pObject->GetProperty()->AsString();
I might want to step into the AsString() function to debug it, but the GetProperty() function being very simple, I don''t want to have to go into it first before going into the AsString() function when I press F11.
This is a simple example, but I have more complex ones where the ability to not step into specified functions would be very useful.
Put a breakpoint in AsString, then run it with F5. I don''t think that there is a way to do precisely what you''re writing about. It wouldn''t make much sense IMO. The breakpoint is well and sufficient.
Yes, I know all this, but I know that what I''m talking about exists because I read an article about it a while ago. I just don''t remember where.
I''m not looking for a workaround either because I have lots of functions I''d like to flag as "don''t step into", so the breakpoint solution, although easy and obvious, would not be much of a time-saver, having to find and open the file where the function is to set the breakpoint and all... I mean that''s not a permanent solution to skip over specific functions so it''s not what I need.
Anyway, I''ll try to find the article again and post a link here if I find something.
I''m not looking for a workaround either because I have lots of functions I''d like to flag as "don''t step into", so the breakpoint solution, although easy and obvious, would not be much of a time-saver, having to find and open the file where the function is to set the breakpoint and all... I mean that''s not a permanent solution to skip over specific functions so it''s not what I need.
Anyway, I''ll try to find the article again and post a link here if I find something.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement