By default, projects are not compiled with debugging
information (at least, this was the case for me).
When you choose to debug a project which was not
compiled with debugging information, Dev-C++ asks the
user if s/he would like to recompile the project with
this information.
When the recompile option is chosen, the project does
appear to recompile, but when you try to debug the
project again, you are once more informed that the
project does not have debugging information and
prompted to recompile it.
Additionally, I would like to suggest that, when one
chooses to recompile with debugging on from the debug
menu, that the project is executed after compilation
just as it would have been had the project been made
with debug info in the first place.
Further, another idea I would like to request
implementation of is that rather than the debug tool
complaining that the project hasn't been compiled, that
it ask if the user would like to compile it (with
debugging symbols of course) right now.
Version 5 is looking great, and with the addition of
intelligent context-sensitive auto-tabbing, Dev-C++ has
replaced Visual Studio in most of the Introduction to
C++ classes in my school. Many thanks for all of your
hard work.
Logged In: YES
user_id=25510
I could not reproduce the problem here, and this bug should
have been fixed some versions ago. Please check with latest
version 4.9.9.0.
Colin
Logged In: YES
user_id=682737
I also can't reproduce the first part of the problem now;
however, it would be nice to actually start the debugger
after recompiling (now I click yes, it recompiles and goes
back to the editor, and I have to start debug again).
Logged In: YES
user_id=682737
I encountered this problem once (accidentally) with a CVS
version between 4.9.9.0 and 4.9.9.1; also somebody reported
it in the forum, see
https://sourceforge.net/forum/forum.php?thread_id=1194620&forum_id=48211
and
https://sourceforge.net/forum/forum.php?thread_id=1193333&forum_id=48211
however, I can't reproduce it anymore
And as I said, I'd also like to see the debugger starting
automatically after recompilation (ok, maybe this part is a
feature request)
Adrian
Logged In: YES
user_id=682737
I managed to reproduce this bug with Dev-C++ 4.9.9.1!
I have a project, compiles fine, and when I try to debug I
get that window "your project does not have debugging
information, do you want to enable debugging and rebuild
your project?", I click "yes", it recompiles, then I try to
debug again, and I get the same window.
I can provide any info you need, but I can't attach files to
this bug report. I could put something on a web site, or
create another bug report.
Also, in case you wanted to know, bugs no. 780574, 661108
and 656753 seem to be duplicates of this bug, therefore not
fixed.
There may be more duplicates, but I didn't search deeply.
Finally, I suggest reopening and increasing the priority of
this bug.
Logged In: YES
user_id=1242914
WORKAROUND (read on)
I have encountered exactly the same problem with Dev-C++
v4.9.9.2.
REPRODUCING THE PROBLEM
[1] Create a new project.
[2] Paste the following code into the code editor:
include <stdio.h>
int main(void)
{
int a = 0;
while(1){
a++;
printf("a = %d\n", a);
}
return 0;
}
[3] Build the project and check that the executable runs OK.
[4] Set a breakpoint on a line of your choice e.g. a++;
Now build the project and try to debug it. You will find that the
project has no debug information and the the debugger will
not run.
WORKAROUND
[1] Complete steps [1] through [4] above to get a working
project.
[2] Select "Project > Project Options" from the menu bar.
[3] You don't need to do anything in the "Project options"
dialogue - just click the "OK" button.
[4] Try to debug the project again. The same message will
appear saying that the project has no debugging information.
Click "Yes" to enable debugging and rebuilding your project.
This time, when you click "Yes", Dev-Cpp will do what it
preaches.
The debugger will now work.
CONCLUSION
In summary, all you have to do to get the debugger to work is
click "Project > Project Options" and then the "OK" button.
You will have to do that for every new project you wish to
debug. The good news is that once you have applied the
workaround to a project, the debugger will ALWAYS work
with that project, which looks like something is changed in a
file when the workaround is carried out.
P.S. Dev-Cpp 5 is fantastic. If I ever am rich, I will donate half
my fortune towards developing Dev-Cpp :-)
Logged In: YES
user_id=1242914
The problem is that "Makefile.win" is not being written to
unless you do the workaround.
Logged In: YES
user_id=1310111
I've had the same exact problem...scoox's "workaround"
worked also.
Logged In: NO
thank you scoox, you're a genius!!!
i installed and uninstalled it 4 times with different settings trying to get it to work.
I was just about to look for another compiler when i found this.
Thanks!!!
Logged In: YES
user_id=2049318
Originator: NO
thank you scoox, you're a genius!!!
i installed and uninstalled it 4 times with different settings trying to get it to work.
I was just about to look for another compiler when i found this.
Thanks!!!
(just posting it again after loggin in)