How do I use the debugger?

This is a discussion on How do I use the debugger? within the C++ Programming forums, part of the General Programming Boards category; Can someone point me towards a tutorial or post which explains how to use the debugger? I'm sure it's too ...

  1. #1
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802

    Question How do I use the debugger?

    Can someone point me towards a tutorial or post which explains how to use the debugger? I'm sure it's too large of a program to explain in a single post (maybe a book?) I don't know. I'm talking about the one bundled with MSVC++ 6.0

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    223

    using the debugger in vc6.0

    use the help files there is a tutorial under

    the topic using visual c++\debugger
    zMan

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    194
    The best way to learn about the debugger is to play around with it.
    Write a simple program that you understand, have a few function calls in it, make a few functions of your own and call them. Anything simple will do.
    Then set a breakpoint(use F9) at the start of main, and you can use the debug toolbar to step through the program.
    You can run the code up to the cursor, step into the next statement, which will let you debug a function call, but be careful, if you step into a library function you will see the disassembled machine code.
    Play around with setting breakpoints, stepping into and out of functions, or stepping over functions.
    There are windows at the bottom for displaying values of variables, the one of the left is automaticly changed by the debugger to whatever vars are in scope, and the on on the right can be changed by you.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting a C# program with a manifest file to run in the debugger
    By Xarzu Athanasop in forum C# Programming
    Replies: 0
    Last Post: 01-18-2008, 06:34 PM
  2. executing from debugger
    By hedwin in forum C++ Programming
    Replies: 8
    Last Post: 10-11-2007, 05:05 PM
  3. Replies: 3
    Last Post: 07-24-2007, 05:25 PM
  4. MSVC++ Debugger (it kills me)
    By lightatdawn in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 06-29-2002, 08:37 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21