[fpc-pascal] console gdb in mac

Joost van der Sluis joost at cnoc.nl
Mon Sep 8 17:39:14 CEST 2014

On 09/07/2014 05:42 PM, Felipe Monteiro de Carvalho wrote:
> On Sun, Sep 7, 2014 at 5:19 PM, Felipe Monteiro de Carvalho
> <felipemonteiro.carvalho at gmail.com> wrote:
>> I'm trying to debug lcl-cocoa, but the debugger in the IDE is not
>> helping (not stopping in breakpoints inside the LCL, can't read
>> variable names, etc...)
> Well, I see now that IDE debugging generally works, but that reliably
> it stops working inside this function:
> function TCocoaWidgetSet.SetFocus(Handle: HWND): HWND;
> Breakpoint inside it works, but stepping / viewing values / any other
> action will crash gdb.

Well, it was when I was working on Lazarus's cocoa-widgetset that I 
decided to make my own debugger.

You can try that one. Only thing is that you have to sign your IDE. (Or 
fpd - the console version of the debugger), you have to use the Dwarf 
debug-format, and you have to run 'dsymutil' to create a .dSym-debug 
bundle for your application.

If you want I can help you with that.



More information about the fpc-pascal mailing list