Sha256: 426883f4ca269ddca6e37dc18f94a007b72c6f41e405b08d8f1c1c1e0ac1d532

Contents?: true

Size: 1.21 KB

Versions: 29

Compression:

Stored size: 1.21 KB

Contents

How to debug in Eclipse
=======================

The following example is made with Eclipse Mars, **Cygwin**, **gcc** and **gdb**. However, the same applies to all other compilers and
environments, too.

1. Compile with debug information
*********************************

Don't forget this. Otherwise sources symbols cannot not mapped.

.. image:: ../../_static/debug_flag.png

2. Create a debug configuration for a C++ application
*****************************************************

This options can be found under Run->Debug Configurations... or click on the arrow next to the green spider.

.. image:: ../../_static/debug_app.png

|  Choose a suitable name and the executable.

3. Add path mapping
*******************

.. image:: ../../_static/debug_path.png

.. image:: ../../_static/debug_map.png

|  Note that this must be done if the compiler uses different paths than Eclipse. In this example I have used gcc under Cygwin,
|  which typically uses "/cygdrive/c" for "c:\\". I always mount "c:\\" to "/c".
|
|  Also note, that my Eclipse changes "/c" to "\\c" in the dialog box automatically, but it works nevertheless.

4. Now you can debug your code
******************************

.. image:: ../../_static/debug_debug.png

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
bake-toolkit-2.29.4 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.29.3 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.29.2 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.29.0 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.28.1 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.28.0 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.27.0 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.26.1 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.26.0 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.25.1 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.25.0 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.24.6 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.24.5 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.24.4 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.24.3 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.24.2 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.24.1 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.24.0 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.23.12 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt
bake-toolkit-2.23.8 documentation/_build/html/_sources/ide/eclipse/how_to_debug_in_eclipse.txt