Difference between revisions of "GDB"
From Free Pascal wiki
Jump to navigationJump to searchJwdietrich (talk | contribs) |
m (OSX -> macOS) |
||
Line 1: | Line 1: | ||
[[File:archer.jpg|right]] | [[File:archer.jpg|right]] | ||
− | '''GDB''', abbreviated for '''GNU debugger''' and named ''gdb'' as an executable file, is the standard debugger for the GNU operating system and most other platforms including Linux, BSD, | + | '''GDB''', abbreviated for '''GNU debugger''' and named ''gdb'' as an executable file, is the standard debugger for the GNU operating system and most other platforms including Linux, BSD, macOS and Windows. [[Lazarus]] uses GDB as default debugger. |
− | GDB is not a part of Lazarus. Unless you are using Windows or certain versions of | + | GDB is not a part of Lazarus. Unless you are using Windows or certain versions of macOS with Xcode, you have to install it yourself before using it. Earlier versions of Xcode come with bundled GDB. After installation it will be necessary to set the path to gdb (for example ''/usr/bin/gdb'') in [[IDE_Window:_Debugger_Options#General|Lazarus' debugger settings]]. |
* [[GDB on OS X Mavericks and Xcode 5]] | * [[GDB on OS X Mavericks and Xcode 5]] | ||
Line 16: | Line 16: | ||
== External Links == | == External Links == | ||
+ | |||
* [https://www.gnu.org/software/gdb/ Official GDB site] | * [https://www.gnu.org/software/gdb/ Official GDB site] | ||
− | [[ | + | [[Category:Debugging]] |
Revision as of 04:48, 5 March 2020
GDB, abbreviated for GNU debugger and named gdb as an executable file, is the standard debugger for the GNU operating system and most other platforms including Linux, BSD, macOS and Windows. Lazarus uses GDB as default debugger.
GDB is not a part of Lazarus. Unless you are using Windows or certain versions of macOS with Xcode, you have to install it yourself before using it. Earlier versions of Xcode come with bundled GDB. After installation it will be necessary to set the path to gdb (for example /usr/bin/gdb) in Lazarus' debugger settings.
See also
- GDB Debugger Tips
- Debugging - GDB tricks
- Creating a Backtrace with GDB
- Debugger Setup
- IDE Window: Debug History
- IDE Window: Debug Output
- IDE Window: Debugger Options