|
-
April 6th, 2010, 10:35 PM
#1
Does C++ Microsoft Visual Studio 2008 have step into
like moving across your program only?
Thanks!
Last edited by Johnseito; April 7th, 2010 at 06:02 AM.
-
April 6th, 2010, 10:51 PM
#2
Re: Does C++ Microsoft Visual Studio 2008 have step into
Every debugger has "step into". It wouldn't be much of a debugger otherwise....
-
April 7th, 2010, 01:07 AM
#3
Re: Does C++ Microsoft Visual Studio 2008 have step into
 Originally Posted by Johnseito
you know how visual basic for excel does, does it have something like that?
F11 key will solve your problem.
-
April 7th, 2010, 05:49 AM
#4
Re: Does C++ Microsoft Visual Studio 2008 have step into
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.
-
April 7th, 2010, 05:51 AM
#5
Re: Does C++ Microsoft Visual Studio 2008 have step into
How to use the Visual Studio debugger.
-
April 7th, 2010, 06:07 AM
#6
Re: Does C++ Microsoft Visual Studio 2008 have step into
skizmo,
I don't see how that applied to how I want to use it.
-
April 7th, 2010, 06:08 AM
#7
Re: Does C++ Microsoft Visual Studio 2008 have step into
my code doesn't have error I just want to see the flow of things.
-
April 7th, 2010, 06:36 AM
#8
Re: Does C++ Microsoft Visual Studio 2008 have step into
 Originally Posted by Johnseito
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.
Just do NOT press F11 being at the place where "other program that was inbuilt by C++, like if, while, string, ifstream, cout, etc." is called.
Victor Nijegorodov
-
April 7th, 2010, 06:48 AM
#9
Re: Does C++ Microsoft Visual Studio 2008 have step into
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?
-
April 7th, 2010, 06:58 AM
#10
Re: Does C++ Microsoft Visual Studio 2008 have step into
 Originally Posted by Johnseito
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?
You asked for step into when it sounds like you mean step. F10 will execute the current line. If it's a function, it'll call the function but not step into it. If you want to step into the function use F11.
-
April 7th, 2010, 07:01 AM
#11
Re: Does C++ Microsoft Visual Studio 2008 have step into
 Originally Posted by Johnseito
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)....
-
April 8th, 2010, 07:47 AM
#12
Re: Does C++ Microsoft Visual Studio 2008 have step into
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.
Last edited by Johnseito; April 8th, 2010 at 07:55 AM.
-
April 8th, 2010, 08:16 AM
#13
Re: Does C++ Microsoft Visual Studio 2008 have step into
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 as
Code:
CString::*=NoStepInto
CMyClass::MyFunc=NoStepInto
and so on.
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.
Be sure to rate those who help!
-------------------------------------------------------------
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
-
April 8th, 2010, 08:23 AM
#14
Re: Does C++ Microsoft Visual Studio 2008 have step into
Ok, I got it. just when you do cin have break point and run it and step doesn't work for my example.
Last edited by Johnseito; April 8th, 2010 at 08:32 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|