CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 14 of 14
  1. #1
    Join Date
    Jan 2010
    Posts
    57

    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.

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: Does C++ Microsoft Visual Studio 2008 have step into

    Every debugger has "step into". It wouldn't be much of a debugger otherwise....

  3. #3
    Join Date
    Dec 2008
    Posts
    144

    Re: Does C++ Microsoft Visual Studio 2008 have step into

    Quote Originally Posted by Johnseito View Post
    you know how visual basic for excel does, does it have something like that?
    F11 key will solve your problem.

  4. #4
    Join Date
    Jan 2010
    Posts
    57

    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.

  5. #5
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Does C++ Microsoft Visual Studio 2008 have step into

    How to use the Visual Studio debugger.

  6. #6
    Join Date
    Jan 2010
    Posts
    57

    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.

  7. #7
    Join Date
    Jan 2010
    Posts
    57

    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.

  8. #8
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Does C++ Microsoft Visual Studio 2008 have step into

    Quote Originally Posted by Johnseito View Post
    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

  9. #9
    Join Date
    Jan 2010
    Posts
    57

    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?

  10. #10
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: Does C++ Microsoft Visual Studio 2008 have step into

    Quote Originally Posted by Johnseito View Post
    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.

  11. #11
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

    Re: Does C++ Microsoft Visual Studio 2008 have step into

    Quote Originally Posted by Johnseito View Post
    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)....

  12. #12
    Join Date
    Jan 2010
    Posts
    57

    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.

  13. #13
    Join Date
    Jan 2002
    Location
    Houston, TX
    Posts
    1,421

    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

  14. #14
    Join Date
    Jan 2010
    Posts
    57

    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
  •  





Click Here to Expand Forum to Full Width

Featured