User forums > Using Code::Blocks

newbie needs help debugging

(1/1)

minnew:
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

MortenMacFly:
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.

Michael:
Hello,

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

Best wishes,
Michael

Navigation

[0] Message Index

Go to full version