Thread: Any tutorial about Dev C++ debugging feature?

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    48

    Any tutorial about Dev C++ debugging feature?

    I just found its help document is somewhat perplexing...

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Dev-C++ is probably facing the end of its days. There is no development being done on it other than an early project at http://wxdsgn.sourceforge.net/. Dev-C++ as is, is most probably dead.

    Regardless the debugger GUI in Dev-C++ is pretty straightforward (albeit rather useless). What is that you are having trouble with?
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    48
    When I click "debug", it keeps on saying "your project doesn't have debugging information. Do you want to add the debugging information and rebuild the project?" I went through it by "Yes" several times, and it's still like this, without any other debugging information showing up...

  4. #4
    Registered User
    Join Date
    Aug 2006
    Posts
    48
    And the only responese I got from the debug output window is:
    you need to put the debug mode on before you debug.

    What does it mean? Where is the on/off thing?

  5. #5
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Ah. Gotcha.

    You have to compile your program with debug symbols. In other words, you have to compile it for debugging. Go to menu Tools->Compiler Options. In the Compiler tab make sure "Add the following commands when calling compiler" is checked. And add "-g3" (without the quotes) to text box bellow it.

    Compile and link your program normally after doing this. Then you will be able to debug.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  6. #6
    Registered User
    Join Date
    Aug 2006
    Posts
    48
    Thanks Mario; I'll give it a try.

  7. #7
    Registered User
    Join Date
    Aug 2006
    Posts
    48
    Mario, is it "-g3" or "-gdb"? Something is not quite right; I can't quit the GDB in the window even I type "quit" and press "send" in the debug command window.

  8. #8
    Registered User
    Join Date
    Aug 2006
    Posts
    48
    Could I just use the command window for debug instead of the GUI?

  9. #9
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    You could and you should, in my opinion. All the power of gdb is better shown in the console.

    The GDB documentation is better than most tutorials:
    http://www.delorie.com/gnu/docs/gdb/gdb_toc.html

    However, if you still prefer a tutorial look around google for "gdb tutorial"
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  10. #10
    Registered User
    Join Date
    Aug 2006
    Posts
    48
    Seek a confirmation: can it be installed and run in Windows?

  11. #11
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    GDB comes as part of MinGW. When you installed Dev-C++ you installed an editor. It just happens it is bundled with the MinGW compiler and GDB.

    So it is already installed under the bin folder of Dev-C++.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  12. #12
    Registered User
    Join Date
    Aug 2006
    Posts
    48
    Thanks! I found it!!
    Last edited by asmileguo; 09-09-2006 at 07:01 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Debugging Dev C++
    By tuurb046 in forum Tech Board
    Replies: 10
    Last Post: 08-16-2007, 12:51 PM
  2. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 07:38 PM
  3. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  4. Game dev tutorial
    By TLeggo in forum Game Programming
    Replies: 2
    Last Post: 05-27-2002, 08:25 PM
  5. Tutorial about Bloodshed Dev!
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 11-13-2001, 07:42 PM