Preventing VC++ from stepping into a function

Started by
9 comments, last by i1977 20 years, 1 month ago
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!
Frederic FerlandStrategy First, Inc.http://www.strategyfirst.com
Advertisement
F10, i beleive is "Step-Over" which will skip breakpoints for
functions that leave the current scope.
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website
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?
Frederic FerlandStrategy First, Inc.http://www.strategyfirst.com
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!
神はサイコロを振らない!
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.
Frederic FerlandStrategy First, Inc.http://www.strategyfirst.com
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.
You can also use Shift+F10 (or Shift+F11?) to step out of a function.
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.
Frederic FerlandStrategy First, Inc.http://www.strategyfirst.com
Think this is what you're looking for.

(edit) And this tells you how to get the same result in VC7.0/7.1

[edited by - mattnewport on March 18, 2004 4:44:26 PM]

Game Programming Blog: www.mattnewport.com/blog

YES, that''s it! Thanks! I knew I wasn''t crazy!
Frederic FerlandStrategy First, Inc.http://www.strategyfirst.com

This topic is closed to new replies.

Advertisement