Thread: Code:.Blocks debug ?

  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    5

    Code:.Blocks debug ?

    Does anyone knows how to debug with code::blocks, because i download it yesterday and donīt know how to do it...
    The opcion for debugging just canīt be selected...
    Thank you for your help...

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    How exactly does it not work? Check for the selected debugger in Settings -> Compiler and debugger -> Global compiler settings -> Toolchain executables, and see if it actually exists.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    5
    i think it existe, because when i went to where you said there was an opcion called debbuger and it had this "gdb.exe" writen in front of it so it must exist i think....
    When i go to debugger in the top of the window there are a bunch of options that canīt be selected, like the option "start", when i click on it nothing happens.. :s

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by nobita
    i think it existe, because when i went to where you said there was an opcion called debbuger and it had this "gdb.exe" writen in front of it so it must exist i think....
    Then go to the directory specified as the compiler's installation directory and check that there really is a gdb.exe there.

    Quote Originally Posted by nobita
    When i go to debugger in the top of the window there are a bunch of options that canīt be selected, like the option "start", when i click on it nothing happens..
    Do you actually have a project open? The other options may be disabled, but if you do have a project open, you should be able to select the start option.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    Jul 2009
    Posts
    5
    If i create and empty file canīt i run debug???
    does the debug only run when i crete a preoject???

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by nobita
    If i create and empty file canīt i run debug???
    does the debug only run when i crete a preoject???
    I think so.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    Registered User
    Join Date
    Jul 2009
    Posts
    5
    ah ok... than thank you for your help...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Binary not built with debug info - why?
    By ulillillia in forum C Programming
    Replies: 15
    Last Post: 12-11-2008, 01:37 AM
  2. makefiles - debug & release?
    By cpjust in forum C Programming
    Replies: 6
    Last Post: 10-26-2007, 04:00 PM
  3. Debug --> Exceptions in Visual Studio 2005
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 08-10-2007, 02:12 AM
  4. Results in Debug and Release mode are different
    By jaro in forum C Programming
    Replies: 11
    Last Post: 05-27-2006, 11:08 AM
  5. Ask about Debug Assert Failed
    By ooosawaddee3 in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2002, 11:07 PM