erro gdb lazarus el capitain 10.11.2 lazarus / 12-Debugger ---------------------------------------------------------------------- Matrix-Android · 2015-12-11 14:44 i using: xcode 7.2 fpc-2.6.4.intel-macosx.dmg fpcsrc-2.6.4-20140421-i386-macosx.dmg lazarus-1.4.4-20151003-i386-macosx.dmg (http://i.imgur.com/v7lo84T.png) please help-me ---------------------------------------------------------------------- Martin_fr · 2015-12-11 19:10 There are plenty of topics on debugger for the latest Mac OS versions. Are you sure none of them answers the question? Afaik it comes down to either get gdb from an older xcode (if you can still get that). Or build (and codesign) your own. The wiki has instructions how to. This is linked in related posts here on the forum. ---------------------------------------------------------------------- Matrix-Android · 2015-12-11 23:45 Quote from: Martin_fr on December 11, 2015, 08:10:12 pmThere are plenty of topics on debugger for the latest Mac OS versions. Are you sure none of them answers the question? Afaik it comes down to either get gdb from an older xcode (if you can still get that). Or build (and codesign) your own. The wiki has instructions how to. This is linked in related posts here on the forum. you can pass me the download link of a gdb old version + installation tutorial? bad english ---------------------------------------------------------------------- Martin_fr · 2015-12-12 00:27 I dont have a Mac, so I didn't keep any info myself. I only remember, I read from several people that those are the 2 options. I do not know if the old gdb can be downloaded, or if people copied it from an old mac they had. Sorry. ---------------------------------------------------------------------- Martin_fr · 2015-12-12 00:30 btw, our homepage has a link for Lazarus on Mac. http://www.lazarus-ide.org/ http://wiki.lazarus.freepascal.org/Portal:Mac and there is a topic on gdb and Maverics. I have no idea if it is the same for el capitain. ---------------------------------------------------------------------- freeman35 · 2015-12-12 11:38 gdb application (or link) in this folder "/usr/local/bin/gdb" on "el capitan", some folder permissions changed, so user can not access there. more info on web or apple documents. And can be helpful this link http://wiki.freepascal.org/GDB_on_OS_X_Mavericks_and_Xcode_5 ---------------------------------------------------------------------- lalves90 · 2015-12-12 16:38 1) Install XCode    Install XCode using the App Store. It is available for free. The download is over 4Gb, so installation can take a while. Once XCode is installed, 2 things must be done:    1. ACCEPT THE LICENSE AGREEMENT    Accepting the license agreement can be done by opening XCode, and it will prompt you to accept the license agreement.    2. INSTALL THE XCODE COMMAND-LINE TOOLS    To install the command line tools, a new Terminal window must be opened, and the following command must be issued:    sudo xcode-select --install 2) Install MacPorts Lazarus uses an external debugger: the GNU Debugger (gdb), to debug programs. Earlier versions of XCode included a gdb debugger, but more recent versions do not. So an external debugger must be installed. Several options are possible, one of them is installing MacPorts and using that to install a gdb. Installing and using a debugger is somewhat of a chore: To enhance security, not every regular program is allowed to debug another program on Mac OS X. To allow a program to debug another there are 2 options:    1. Sign the debugger executable.    2. Modify the run environment so it allows non-signed binaries to debug other programs I will follow the second route. Installing macports is relatively simple:    1) Go to http://www.macports.org and download an installer package for your version    2) A .pkg file will be downloaded, double clicking it in finder starts the installer    3) Once MacPorts is installed, a new Terminal window must be opened, and the following command must be issued to install the GNU debugger:       sudo port install gdb    Macports will then proceed to download and install the GNU debugger.    When all is done, on a default installation, the gnu debugger will be installed in /opt/local/bin/ggdb. 3) Change run-time environment for the debugger    1) Reboot the Mac and hold down Command + R keys simultaneously after you hear the startup chime, this will boot OS X into Recovery Mode    2) When the “OS X Utilities” screen appears, pull down the ‘Utilities’ menu at the top of the screen instead, and choose “Terminal”        3) Type the following command into the terminal then hit return:           csrutil disable; reboot        4) You’ll see a message saying that System Integrity Protection has been disabled and the Mac needs to restart for changes to take effect, and the Mac will then reboot itself automatically, just let it boot up as normal    5) A new Terminal window must be opened, and the following command must be issued to change the run-time environment for the debugger. Change the string from -s to -sp at line 22, col 27.       sudo nano /System/Library/LaunchDaemons/com.apple.taskgated.plist    6) Reboot the Mac and hold down Command + R keys simultaneously after you hear the startup chime, this will boot OS X into Recovery Mode    7) When the “OS X Utilities” screen appears, pull down the ‘Utilities’ menu at the top of the screen instead, and choose “Terminal”    8 ) Type the following command into the terminal then hit return:           csrutil enable; reboot    9) A new Terminal window must be opened, and the following command must be issued:       sudo dseditgroup -o edit -a USERNAME -t user procmod    USERNAME is your user ID. 4) Install the FPC compiler and Lazarus With all the preliminaries in place, it is now possible to install the FPC compiler and Lazarus itself. This can be done using the installers found on the Lazarus website. When double clicking the installer file .pkg, it can be that Mac OS X complains that the package cannot be installed because it is not trusted. In that case, it is sufficient to click the package file using the Ctrl-key pressed, to bring up the context menu, and choosing the 'Open With' and 'Installer (default)' menu item to install the package anyway.    1) Go to http://www.lazarus-ide.org and you need to download all three packages fpc, fpc-src and lazarus    2) Install fpc package    3) Install fpc-src package    4) Install lazarus package 5) Start Lazarus The IDE can be started. The IDE will begin by checking your Mac, to see if all necessary requirements are installed. If you have installed Free Pascal in its default location, then Lazarus will find the sources and the compiler binary as well as make. It may not find the debugger, and will present you with a warning. Change the debugger to /opt/local/bin/ggdb. Now start Lazarus and go to “Tools” – “Options” – “Debugger” – “General” and make sure the “Debugger path and type” to “GNU Debugger (gdb)” is “/opt/local/bin/ggdb“. For every project go to the menu “Project” – “Project Options …” – “Compiler Options” – “Linking” and under “Debugging Info” set “Choose type of debug info” to “Dwarf with sets (-gw -godwarfsets)“.