Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: minnew on May 09, 2006, 11:38:36 pm

Title: newbie needs help debugging
Post by: minnew on May 09, 2006, 11:38:36 pm
When I try to debug (F8) some source code (which compiles and executes fine), I get the "The project/target has no debugging info" error message.  What does this mean, and how do I fix it?

thanks
Title: Re: newbie needs help debugging
Post by: MortenMacFly on May 09, 2006, 11:43:30 pm
Make sure you enabled the compiler option "-g" in your project. This will produce the debugger information in your executable. Please note that if you set this option a re-build of your application is required.
With regards, Morten.
Title: Re: newbie needs help debugging
Post by: Michael on May 09, 2006, 11:44:23 pm
Hello,

Project-->Build options-->Compiler flags tab-->check the box named "Producing debugging symbols [-g]".

Best wishes,
Michael