Difference between revisions of "Debugger Setup"
m |
|||
Line 36: | Line 36: | ||
= See also = | = See also = | ||
− | * [[ | + | * [[IDE Window: Debugger Options]] |
* [[GDB Debugger Tips]] | * [[GDB Debugger Tips]] | ||
− | * | + | |
+ | =External links= | ||
+ | * [http://www.youtube.com/watch?v=cf4G06k2YL8 Setup Video Tutorial] | ||
[[Category:Debugging]] | [[Category:Debugging]] | ||
[[Category:Lazarus]] | [[Category:Lazarus]] |
Revision as of 18:02, 26 May 2012
Configure the IDE
In order to be able to debug any of your projects, you need to make sure a the IDE is correctly configured.
This settings do not usually change. You need to make them only once after you installed Lazarus, or if you changed/updated your installation
- Open the Lazarus option dialog
The image shows, where to find the option dialog in the Lazarus 0.9.31 and up. In previous versions the entry is in the "Environment" menu.
- Make sure, the option "Gnu debugger (GDB)" is selected.
- The path to the gdb.exe may differ.
- On unix based systems it may be something like "/usr/bin/gdb"
- On windows it should be in a folder called "mingw\bin\" in the directory in which Lazarus is installed.
Project Options
In order to debug your project, you need to tell the IDE to compile it in a special way, which provides additional information required by the debugger.
Please note: This will considerably increase the size of your executable (See FAQ). If you want to build a release version of your software you should switch those settings off (see also Build Modes)
The required settings can be made in the "Project Options" dialog:
- You must enable the "Generate Debug Info for GDB"
- You must not use any of the following