User forums > General (but related to Code::Blocks)

How to turn on debug mode?

(1/1)

flux:
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?

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

flux:
Perfect. I did it.
Thank you so much.

Navigation

[0] Message Index

Go to full version