Difference between revisions of "Debugger Setup/fr"
(Copy from english page + titles translation) |
|||
Line 2: | Line 2: | ||
__TOC__ | __TOC__ | ||
− | + | Depuis Lazarus 2.0, l'IDE a un [https://forum.lazarus.freepascal.org/index.php/topic,42869.0.html débogueur basé sur LLDB pour MacOS]. De nombreuses légendes de l'IDE sont toujours | |
+ | font explicitement référence à [[GDB/fr|GDB]], mais les options s'appliquent également à [[LLDB/fr|LLDB]]. | ||
== Configurer l'EDI == | == Configurer l'EDI == |
Revision as of 15:41, 9 April 2022
│
English (en) │
español (es) │
français (fr) │
русский (ru) │
Depuis Lazarus 2.0, l'IDE a un débogueur basé sur LLDB pour MacOS. De nombreuses légendes de l'IDE sont toujours font explicitement référence à GDB, mais les options s'appliquent également à LLDB.
Configurer l'EDI
In order to be able to debug your projects, you need to make sure the IDE is correctly configured.
These settings do not usually change. You need to make them only once after you installed Lazarus, or if you changed/updated your installation
The image shows where to find the option dialog in Lazarus 0.9.31 and up. In previous versions the entry is in the "Environment" menu.
- Make sure that the option "GNU debugger (GDB)" is selected.
- The path to gdb.exe may differ:
- On Linux/Unix based systems it may be something like "/usr/bin/gdb"
- On Windows it should be in a folder called "mingw\bin\" under the directory in which Lazarus is installed.
Lazarus 2.0 and up: On Windows 64 find the option "FixIncorrectStepOver" in the property grid and set it to enabled (true).
- On MacOS, with Lazarus 2.0 or higher
- Select "LLDB (with fpdebug)"
- Set the path to: /usr/bin/lldb
Options de projet
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 are made in the "Project Options" dialog:
- You must enable the "Generate Debug Info for GDB"
- On Windows/Linux 32 bit it is highly recommended to use "Dwarf"
- If using the LLDB based debugger, you are not allowed to use "Stabs". You can choose any of the Dwarf settings. Best to set this explicitly, as "automatic" depends on your fpc version.
- You must not use any of the following
Version de GDB
GDB 7.5 nécessite Lazarus 1.4 ou supérieur.
GDB 7.7.1 semble bien fonctionner avec Lazarus 1.2.4.
Sur macOS: lldb fait partie des outils de développement Apple.
Voir aussi
- EDI Options / Configuration
- Lazarus 2.0.x (et antérieur)
- Options du débogueur
- Lazarus 2.2 (et supérieur)
- Options générales du débogueur et [[IDE_Window:_DebuggerClassOptionsFrame/fr|Options de Backend du débogeur]
- Options de projet / arguments de la ligne de commande, environnement, et launcher app: Exécuter -> Paramètres d'exécution
- TheLA FAQ pour le "débogueur GNU" par défaut dans Lazarus: Trucs du débogueur GDB
- Débogueurs alternatifs dans Lazarus: Etat du débogueur inclut une carte des fonctionnalités et des raccourcis clavier par défaut.