like moving across your program only?
Thanks!
Printable View
like moving across your program only?
Thanks!
Every debugger has "step into". It wouldn't be much of a debugger otherwise....
Ok, do you know how I could step into and only see my program, instead it goes to other program that was inbuilt by C++, like if, while, string, ifstream, cout, etc.
How to use the Visual Studio debugger.
skizmo,
I don't see how that applied to how I want to use it.
my code doesn't have error I just want to see the flow of things.
Ok so that would mean a doing so manually and the F11 is not much help.
so there is no other way I could step into without going into the built in programs?
Well...the debugger is fairly simple in its actions....you tell him to go into a function, it will. Now....as others have suggested, do not use 'Step Into' for operating system functions or class types that you don't want to examine (such as string).
However, if you have a function expecting the result of another or taking a e.g. string, and you want to step into that function, the debugger will first step into the other function before actually going into your function. This is essentially intended behavior for the 'Step Into' functionality....it simply steps into everything....
In these cases, simply 'Step Out' immediately (Shift+F11)....
Ok, thanks.
so how about lets say you put a break point in your code and then run it to the break point, then
you do step into and step over, could you do that??
you know what I mean right, I don't want to run over the long code over and over again, just set a break point, run it then and then do a step into and step over.
I tried that put a break point, hit F5 it stop at break point but I can't hit F10 after that.
Over the years there have been many ways to avoid stepping in to certain functions. With VC6, you used the autoexp.dat file and added a section called [ExecutionControl]. In that section, you would specify entries such asand so on.Code:CString::*=NoStepInto
CMyClass::MyFunc=NoStepInto
With VS2002, 2003, 2005, etc, these have be moved into the registry instead of the autoexp.dat file. They are in different places in the registry - VS2002 and 2003 had them in HKCU, while VS2005 has them in HKLM. Not sure where VS2008 has them, but it could still be in HKLM.
Here's an article that explains how to do this with VS2002 - VS2005. You might try it with VS2008.
Hope this helps.
Ok, I got it. just when you do cin have break point and run it and step doesn't work for my example.