Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging in Dev-C++ makes IDE crash and not respond

Tags:

c

debugging

ide

I'd love to ask someone to hint me what to do. I have installed Dev-C++ on my computer (the 5.11 ver.) I don't know what happened to it, if it's Windows 8.1 problem or some other I really don't know, but when I start to debug, it simply stops working. What exactly happens: I open dev-c++, then I open my *.c file. I set a breakpoint in my source code, and when I hit debug, a pop-up windows shows:

You have not enabled debugging info (-g) and/or stripped it from executable (-s) in Compiler Options.
Do you want to correct this now?

And when I hit yes, it simply stops to respond, and crashes. I have never occured such situation, because on every computer I have worked, I'd got no problem with debugging on Dev-C++. Even running it in compatibility mode didn't help. I really don't know what to do. For any help, thanks in advance!

like image 835
qwerty_ Avatar asked Sep 20 '15 23:09

qwerty_


People also ask

Can we debug in Dev C++?

How to debug in Dev-c++ You can use the Dev-c++ debugger to help you find errors in your program. In debug mode, you can step through the execution of your program one line at a time. Also, you can stop at any time to see the value of your variables.

How do I debug C++?

To set the breakpoint, click in the gutter to the left of the doWork function call (or select the line of code and press F9). Now press F5 (or choose Debug > Start Debugging). The debugger pauses where you set the breakpoint. The statement where the debugger and app execution is paused is indicated by the yellow arrow.


1 Answers

For me to fix by following as below

  1. Go to Tools -> Compiler option
  2. Change from TMD-GCC 4.9.2 64 bit Release to TMD-GCC 4.9.2 64 bit Debug
  3. Put the option -g as in the picture enter image description here
  4. Then click OK and run again!
  5. Hope it will help!
like image 165
Piseth Sok Avatar answered Sep 18 '22 12:09

Piseth Sok