Configure CodeBlocks build environment and debugging problems

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/saber_wtq/article/details/88247445

CodebBocks official website to download the installation package that comes with the compiler (the installation process does not go into details)

CodeBlocks download and install link

It is noteworthy that after the installation is complete to open the first point you must select the default compiler environment. FIG marquee selection follows the GNU GCC, and then click OK.

Then go after the open settings-> complier-> Global Complier setting

GNU GCC compiler environment selected for the following FIGS.

 

Then click complier Flags tab, check Produce Debugging symbols [-g]. Or can not breakpoint debugging, breakpoints in case of non-stop. If you check the breakpoints after this, still we can not stop at the breakpoint, it is possible to have Chinese at your project directory. Project folder where the file must all be in English directory the job.

Then open Tookchain executables tab, select the file directory where MinGW (MinGW file in the CodeBlocks installation directory). Then click Auto-detect automatically associated compiler environment. After setting Click OK

Then enter Settings-> Click below to enter the default interface under the debugger, beginning Executable path had nothing is a red box, you need to specify CodeBlocks \ MinGW \ bin \ gdb32.exe (go according to your installation directory). Then click OK, basically configured.

If the environment with the wrong want unloading heavy equipment, must go to the C: \ delete \ ****** \ AppData under Users \ Roaming directory CodeBlocks folder, or after uninstalling software configuration information for any course kept in the computer, reinstall the software It is useless.

 

Guess you like

Origin blog.csdn.net/saber_wtq/article/details/88247445