Thread: Stupid question: What does Debugger do?

  1. #1
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310

    Question Stupid question: What does Debugger do?

    I know I sound really stupid for saying this, but what does a debugger do? I know it has something to do with fixing errors in a program...but thats it.

    napKIN

  2. #2

    Post Debuggers

    No need to feel stupid. You could only learn by asking questions.

    A debugger, generally, is a program that interrupts the processor while reading instructions and allows the user to view, step by step, each instruction before it runs. The debugger provided with C++, visual studio, or whatever it comes with will allow you to look at the instruction in the program that had an error. So any program in windows that has an error you can debug. There are many errors, so you will get a chance to see this... trust me. So it's basically almost comparable to the debugger in VB, you can go step by step in the code to see what is wrong, or if there was anything wrong.

    Hope this helps
    -Mike
    {InFeStEd-ArCh0n}

  3. #3
    Registered User blight2c's Avatar
    Join Date
    Mar 2002
    Posts
    266
    i'd add that a debugger allows you to change your variables to anything you want, which helps if you have an unlikly if statment that you want to test.

  4. #4
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    Man I want to learn how to use a debugger but I haven't been able to learn how to dont' know where to start, anybody have any suggestions? I have MSVC++.. as well as some Borland debuggers for win32 DOS or some other stuff, I mean that's what it says, and I have yet to get any of them working.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    63
    Chulo i hear ya.. so far my debugging consists of cout<<"HERE"<<endl;

    i wish i can find a good toutourial on a debugger..
    lol
    SS3X

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

    Ever have a program crash on you? Thats a good time to learn how to use the debugger... step through the program and view your variables, you'll probably find where the logic error occoured. I was once looking for a tutorial on it, probably a few months ago... but since then I've made a few logic errors which have crashed my program, and with testing out the debugger, I found them. It's not as complicated as it looks.

    On a side note, I'd marry a debugger if I could.

  7. #7
    Registered User blight2c's Avatar
    Join Date
    Mar 2002
    Posts
    266
    http://www.google.com/search?hl=en&q...=Google+Search

    are you just joshing around? maybe i'm not using it right then, but it didn't take me anytime at all to use msvc++'s

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Stupid Question
    By Dave3of5 in forum C++ Programming
    Replies: 7
    Last Post: 05-24-2006, 03:52 PM
  2. Stupid Question Probably
    By Kyrin in forum C Programming
    Replies: 2
    Last Post: 05-07-2006, 12:51 AM
  3. Replies: 7
    Last Post: 11-04-2005, 12:17 AM
  4. Stupid Question
    By digdug4life in forum C++ Programming
    Replies: 22
    Last Post: 05-17-2005, 11:43 AM
  5. stupid, stupid question
    By xelitex in forum C++ Programming
    Replies: 5
    Last Post: 12-22-2004, 08:22 PM