Home | Download | Support

C-Free - A Professional Excellent C/C++ IDE

Install GDB
GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed. After version 4.0, the GDB is not be contained in the release of MinGW package, so you need to download and install GDB by yourself.

If you begin to debug your program using the build configuration 'mingw5', you will get the following notice due to 'gdb.exe' can not be found in the Executable Files path.

Firstly, we need to download GDB installation package from http://www.mingw.org . Here we use gdb 6.3 for demonstration. After downloaing gdb-6.3-1.exe, we start it. We get a welcome page.

Click "Next", till we get the following page to select installation location.

In this step, you may specify the same folder that specified when installing MinGW 5.0 previously. After that, select "Install" to begin installation. After installation, you can find gdb.exe under C:\MinGW\bin\ folder.

If the installation location of GDB that you specified is not same as the location of MinGW, you need to add the GDB path manually. The following screen shot shows that GDB is installed to D:\MinGW\.

Now you can use GDB 6.3 to debug your program in C-Free.