Thread: Driving me insane - Debugger

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    132

    Driving me insane - Debugger

    Can someone please help me get this stupid Debugger to work please?

    i use Dev C++ 5.0 and the only debugger that opens is a command window with <gdb> and thats it.

    on other screens and in the book im reading, i think they use an insight one where its visual as it debuggs. but i cannot find it anywhere in my directory.

    anyone else ever had this and fixed it?

  2. #2
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    Gdb isn't so bad...

    type: "run" to start the program.
    type: "break function_name" to stop at a particular function
    type: "c" to continue execution after a break
    type: "s" to step into a function
    type: "n" to step over a function
    type: "print x" to print the variable x
    type: "help" for other ideas.

    Gdb is the standard on many unix systems, so it's a great command line debugger to become familiar with...
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    132
    yeh but when i type run, a load of rubbish types up on screen with loadsa numbers

    cant work it out, never mind ill have to go without it lol

  4. #4
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    type "break main"
    type "run"

    and see if you stop in main.

    Make sure you compiled with debug symbols (usually -g qualifier on the compile command).
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. for loop problem driving me insane!!
    By creeping death in forum C Programming
    Replies: 7
    Last Post: 12-22-2008, 08:38 AM
  2. MSXML driving me insane!
    By bling in forum Windows Programming
    Replies: 4
    Last Post: 09-30-2008, 12:23 PM
  3. NetBeans + Cygwin driving me insane
    By Del75 in forum C++ Programming
    Replies: 4
    Last Post: 08-17-2008, 05:03 AM
  4. JAVA issue driving me insane
    By axon in forum Tech Board
    Replies: 0
    Last Post: 02-23-2004, 09:19 PM
  5. VC++ tutorial driving me insane!
    By Swaine777 in forum C++ Programming
    Replies: 2
    Last Post: 11-30-2003, 08:35 AM