How to use the mingw gdb debugger with Eclipse 3.2 / CDT 3.1
How to use the mingw gdb debugger with Eclipse 3.2 / CDT 3.1- Go to http://sourceforge.net/project/showfiles.php?group_id=2435&package;_id=20507, download gdb-5.2.1-1.exe, and run it to install.
- Create a C Project and build it.
- From the "Run" menu, select "Debug..."
- Click on "C/C++ Local Application", then click the 'New' button (it is a button with a plus sign in the top left corner).
- Click the "Search Project..." button and select your executable.
- Click on the "Environment" tab, and click "New..."
- In the "Name:" field, enter "Path". In the "Value:" field, enter "c:\mingw\bin". Click "OK".
- Click the "Debugger" tab. From the "Debugger:" dropdown box, select "gdb Debugger".
- Click "Debug". Your gdb debugger session should now begin.
- If you get a "Confirm Perspective Switch" dialog, click on "Yes" to switch to the Debug perspective.
- You can now use the buttons in your "Debug" window to step through your code.
Technorati tags: eclipse
5
Comments
—
Comments feed for this post
#2 sofeng commented on 2008-03-26:
Keith,
sorry, i haven't tried this with Eclipse 3.3 / CDT 4.0. i've been using Emacs, so i haven't done too much with Eclipse recently
#5 DannyStaple commented on 2010-03-18:
Also worth noting is that you will need to download the MingW expat dll too for GDB to run.
Post a comment
About
I'm Eliot and this is my notepad for programming topics such as Python, Django, Ubuntu, Emacs, etc... more »
Search Blog
Tags
-
algorithms
(4)
-
aws
(8)
-
blogproject
(20)
-
c_cplusplus
(12)
-
cardstore
(8)
-
colinux
(2)
-
concurrency
(9)
-
conkeror
(2)
-
cygwin
(18)
-
datastructures
(15)
-
datetime
(3)
-
dell
(3)
-
django
(39)
-
emacs
(20)
-
files_directories
(10)
-
install_setup
(7)
-
javascript
(3)
-
keyboard
(6)
-
matplotlib
(5)
-
mercurial
(4)
-
nginx
(2)
-
preferences
(8)
-
processes
(3)
-
pyqt
(18)
-
python
(122)
-
ratpoison
(3)
-
regexes
(5)
-
rsync
(3)
-
softwaretools
(17)
-
sql
(13)
-
ssh
(7)
-
subversion
(6)
-
twisted
(6)
-
ubuntu
(60)
-
urxvt
(5)
-
vxworks
(25)
-
webservices
(4)
-
wmii
(7)
Blogroll
- Adam Gomaa
- Alex Clemesha
- Amir Salihefendic
- Armin Ronacher
- David Beazley
- David Ziegler
- Duncan McGreggor
- Gareth Rushgrave
- Glyph Lefkowitz
- Guido van Rossum
- Ian Bicking
- Jacob Kaplan-Moss
- James Bennett
- James Tauber
- Jesper Noehr
- Matt Harrison
- Nikolay Kolev
- Parand Darugar
- Peter Baumgartner
- Peter Bengtsson
- Rob Hudson
- Simon Willison
- Will McGugan
#1 Keith commented on 2008-02-25:
Hi there; appreciate that you put this on your blog. By any chance, however, does this same configuration work with Eclipse 3.3 and CDT 4.0.1? I'm getting all kinds of errors.