Thread: debugger visual C++

  1. #1

    debugger visual C++

    How does the debugger of Microsoft Visual C++ work??With F10?? And how do you exit the debugger to return to the build screen?

  2. #2
    Registered User C_Coder's Avatar
    Join Date
    Oct 2001
    F10 causes 1 line of code to be executed at a time, therefore you can check vaiable contents.
    If you want to step into a function use F11.
    There should be a button with a red cross on it for exiting the debugger or there should be an option in the build menu.
    All spelling mistakes, syntatical errors and stupid comments are intentional.

  3. #3
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Northern Virginia/Washington DC Metropolitan Area
    If you want to set breakpoints, go to the line of code you want the execution to stop at and press F9, you will see a little red stop sign to the left of the line of code your cursor is at. Then when you start debugging (either use the menu or hit F5) the program will run up until the break point you have set, then you can use the F10 or F11 keys to move through you code line by line. This keeps you from having to start from the beggining of your 5000+ lines of code and using the F10/F11 keys to go through the code line by line 4000+ times until you get to where you want to check things out.

    On the bottom left of you screen, if things are set up the same way as with me, you can type in the names of variables and see their values to the right of the name. Do this for things like structs and you can click on a '+' symbol to expand the structure to see all the data members within. As you press F10/F11 in your code, you will get to see these values change as various parts of your program get executed.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 08:13 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM