Thread: How do you use the debugger in dev-C++ 4

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    11

    Question How do you use the debugger in dev-C++ 4

    i tried to read what it said to do but that was too confusing for me, can anyone make it any simpler


    thanx

  2. #2
    Disturbed Boy gustavosserra's Avatar
    Join Date
    Apr 2003
    Posts
    244
    The Dev debugger is simply a interface to gdb. Gdb works on console. Itīs not friendly, but once that you learn how to use, itīs easy. There are few useful commands. You can debug some real programs with:
    break - set a line to stop
    next - goes to the next line
    step - goes to the next line too, but it goes inside called functions
    run - run the program
    print - print the content of a variable

    To use it just include the flag -ggdb at your g++ compiler.
    Of course that you can get good tutorials...
    Nothing more to tell about me...
    Happy day =)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. executing from debugger
    By hedwin in forum C++ Programming
    Replies: 8
    Last Post: 10-11-2007, 04:05 PM
  2. Replies: 3
    Last Post: 07-24-2007, 04:25 PM
  3. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 01:05 AM
  4. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 08:43 PM
  5. Dev Debugger
    By gvector1 in forum C++ Programming
    Replies: 1
    Last Post: 02-21-2003, 06:38 AM