Dev C + + project has no debug information workaround

Source: Internet
Author: User
Tags gdb debugger

Dev C + + project does not have debug information workaround
devc++4.9.9.2, press F8 to start debugging. The message is: The project has no debug information, do you want to open the debugging options for the project and regenerate it? Select Yes, then press F8, which is still the message. What's the reason?

Follow the help, frequently asked Questions (FAQ) Prompt
How do i enable debugging mode 

Go to Compiler Options an D Click on the Compiler sheet. In the Linker sections, put projectes to ' Generate debugging information '. Do a ' Rebuild all ' and you should is able to debug now.
Tools->compiler Option->settings->linker is set to Yes, Generate debugging information, and rebuild all. Still not, but, after the experiment found that the system provides an example of the program can be debugged, no way, had to compare the compilation information, found that their own building project in the compile time, no add-G option, in the help of GdB said, to use GDB debugging, you must add this parameter (because the dev C + + Using the GDB debugger), in a closer look, found in the project folder there is a Makefile.win file, open a, is a makefile file, so you have to configure from just compiler option, after testing, there are changes around:

1, in the "Tools"-"Compile Options-" "Add following commands when calling Complier" in the following edit box Plus:-g3
2, in the following "Add these commands to the linker command Line "on the edit box plus:-g3

3, go to the Programs page, change the GCC line to: gcc.exe-d__debug__

4, change the g++ row to g++.exe-d__ debug__, click OK.
Recompile, you can debug.

Dev C + + project has no debug information workaround

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.