Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: flux on September 02, 2006, 08:36:05 am

Title: How to turn on debug mode?
Post by: flux on September 02, 2006, 08:36:05 am
When I tried to debug, it always said no debugging info. I cant find any option concerning "debugging info" in build option. What should I do?
Title: Re: How to turn on debug mode?
Post by: sque on September 02, 2006, 08:47:32 am
At least for gcc compile you go at:
Project->Build options
 You select the Compiler Tab and beyond this the Compiler Flags.
 The first option is: [ ] Produce debuggin symbols (-g)

This will do the trick.
Mention that if you set this option at a specific target. (e.g. "Debug") you must compile and try to debug at this target.
Title: Re: How to turn on debug mode?
Post by: flux on September 02, 2006, 08:55:31 am
Perfect. I did it.
Thank you so much.