Thread: My Dark Secret is out.

  1. #1
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427

    My Dark Secret is out.

    I do not know how to use a debugger....... Never used one in my whole intire life, but now I want to learn to.....anyone know of a good tutorial to learn to use the debugger that comes with VC++? Thank you.
    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.

  2. #2
    aurė entuluva! mithrandir's Avatar
    Join Date
    Aug 2001
    Posts
    1,209
    Try the MSDN (http://msdn.microsoft.com/) - you should find something if run a search.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    I haven't used one yet.

  4. #4
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    nor have i.

  5. #5
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    I use gdb somewhat regularly.

  6. #6
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    i only use the MSVC++ one when my program crashes and it says "click cancel or debug" in which case you hit debug and it either points to the line of c++ code that caused the error or gives you an assembly dump. it can be handy.

  7. #7
    Banal internet user
    Join Date
    Aug 2002
    Posts
    1,380
    Originally posted by Perspective
    i only use the MSVC++ one when my program crashes and it says "click cancel or debug" in which case you hit debug and it either points to the line of c++ code that caused the error or gives you an assembly dump. it can be handy.
    agreed

  8. #8
    same here

  9. #9
    Registered User
    Join Date
    Mar 2003
    Posts
    102
    ITs fun to mess with the asm dump. Just rembmer setting esp to 00001000 and eip to ffffffff


  10. #10
    Registered User Xei's Avatar
    Join Date
    May 2002
    Posts
    719
    I'm sure you've all used a debugger, as you must've had at least 10 crashes before.
    "What are you after - the vague post of the week award?" - Salem
    IPv6 Ready.
    Travel the world, meet interesting people...kill them.
    Trying to fix or change something, only guaruntees and perpetuates its existence.
    I don't know about angels, but it is fear that gives men wings.
    The problem with wanting something is the fear of losing it, or never having it. The thought makes you weak.

    E-Mail Xei

  11. #11
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    I think that I use the debugger in every program I write for at least 1/10th of the time it took to write. Its just soo easy to use. Press F10 to step into and see your execution unfold (F5 to just execute normally until::, use breaking points to stop when you want to, use the watch to find out when certain variables change and where, and use the immediates/auto to find out any variable's value at a certain time during deugging. Its cake and its easy and it saves tons of time.

  12. #12
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    I don't understand how people can possibly work without a decent debugger. I used to have to put debugging statements into code and all that stuff, but frequently, that changes the behaviour of the program. Give me a good debugger anyday now.

    The debugger with MS VC++ is pretty good, but is no use for debugging extensively multithreaded code, you can't attach the debugger on a "per thread" basis.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  13. #13
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    [echo]
    I don't understand how people can possibly work without a decent debugger.
    [/echo]

    Essential tool.

    I like in VC++ [CTRL]+B where I can set conditional break points.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  14. #14
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    Same here...never used on before...never needed one though
    The knack of flying is learning to throw yourself at the ground and miss.

  15. #15
    Normal vector Carlos's Avatar
    Join Date
    Sep 2001
    Location
    Budapest
    Posts
    463
    Originally posted by adrianxw
    I don't understand how people can possibly work without a decent debugger.
    I agree: once programming is part of your work, you can't avoid debugging.
    You might not need it while doing some homework-alike projects, however, once a project becames a little more complex, you'll find this tool useful.

    Originally posted by adrianxw
    The debugger with MS VC++ is pretty good, but is no use for debugging extensively multithreaded code, you can't attach the debugger on a "per thread" basis.
    Indeed, it's a nightmare. Trace outputs, conditional breakpoints are a good alternative to catch errors in multithreaded programs (it's real "fun" to search the "bad" thread within a trace output file of more Mbytes ;°> ).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. dark side of global variables
    By MK27 in forum C Programming
    Replies: 18
    Last Post: 12-09-2008, 03:14 AM
  2. Question for people who use or have used the Dark SDK
    By Frantic- in forum C++ Programming
    Replies: 2
    Last Post: 06-13-2005, 07:09 PM
  3. The Secret to Checkers...
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 07-19-2002, 07:51 AM
  4. The Backdrop Story For My Next Game
    By TechWins in forum Game Programming
    Replies: 8
    Last Post: 06-25-2002, 05:45 PM
  5. What is your most secret desire?
    By Brian in forum A Brief History of Cprogramming.com
    Replies: 35
    Last Post: 04-22-2002, 05:36 AM