You are on page 1of 1

How to fix error when debug in Dev C++

(version 5)
Description

When debug a program in Dev C++, you receive a message:

“Your project does not have debugging information, do you want to enable debugging and rebuild your
project?”

However, when you click yes to include debugging information, it never happens.

Reason

Somehow Dev-C++ does not want to set the right compiler and linker switches to include debugging
information in your compiled program.

Solution

1. Go to the “Tools/Compiler Options” menu.


2. Put “-g” (without the quotation marks) in both boxes on the Compiler tab.
3. Make sure to check both boxes labeled "Add the following commands ..."

You might also like