Difference between revisions of "GDB"

From Free Pascal wiki
Jump to navigationJump to search
m (OSX -> macOS)
m (Updated FreeBSD gdb removal date)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{GDB}}
 
[[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, macOS and Windows. [[Lazarus]] uses GDB as default debugger.
+
'''GDB''', abbreviated for '''GNU debugger''' and named ''gdb'' as an executable file, is the standard debugger for the GNU operating system and many other platforms including Linux and Windows. In macOS 10.14 (2018) and FreeBSD 13.0 (2021), ''gdb'' was replaced by ''[[lldb]]'', and is no longer supported. [[Lazarus]] uses GDB as the 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 [[IDE_Window:_Debugger_Options#General|Lazarus' debugger settings]].
 
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]].
Line 7: Line 8:
  
 
== See also ==
 
== See also ==
 +
 
* [[GDB Debugger Tips]]
 
* [[GDB Debugger Tips]]
 
* [[Debugging - GDB tricks]]
 
* [[Debugging - GDB tricks]]
Line 14: Line 16:
 
* [[IDE Window: Debug Output]]
 
* [[IDE Window: Debug Output]]
 
* [[IDE Window: Debugger Options]]
 
* [[IDE Window: Debugger Options]]
 +
* [[IDE Window: Breakpoints]]
 +
* [[IDE Window: Watch list]]
  
 
== External Links ==
 
== External Links ==

Latest revision as of 13:24, 28 May 2022

English (en) français (fr) polski (pl)

archer.jpg

GDB, abbreviated for GNU debugger and named gdb as an executable file, is the standard debugger for the GNU operating system and many other platforms including Linux and Windows. In macOS 10.14 (2018) and FreeBSD 13.0 (2021), gdb was replaced by lldb, and is no longer supported. Lazarus uses GDB as the 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

External Links