[Lazarus] Cannot debug
Martin Frb
lazarus at mfriebe.de
Mon Mar 16 22:37:24 CET 2015
If you press ok, and all works as wanted, the warning can be disabled in
Tools > Options > debugger.
Or open the breakpoint dialog (menu view > debug windows). MAybe you
have a breakpoint somewhere that is not in compiled sources? (Hint Do
NOT smartlink)
Otherwise try not to use an external file (it should work but maybe
not..) In that case also, make sure the option -Xs (strip) is not set.
On 16/03/2015 21:18, Valdas Jankūnas wrote:
> Hello,
>
> when I try to debug my code with some breakpoints in IDE (by hitting
> F9) then I always get message from Lazarus:
>
> "The debugger was unable to set all breakpoints during initialization.
> You may with to check if all sources were compiled with debug-info.
> Press OK to ignore this and continue"
>
> How to fix this to be able to debug?
>
>
> Current settings:
>
> Project options -> Debugging -> Generate debug info for GDB = checked;
> Project options -> Compilation and Linking -> Optimization level = 1
> (also tried 0);
> IDE options -> Debuger -> Type and file = GNU debuger, gdb;
> External DBG file is generated;
>
> Lazarus 1.5 r48395M FPC 2.6.4 x86_64-linux-qt
>
More information about the Lazarus
mailing list