Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-03

Cannot debug

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Valdas Jankūnas

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

Valdas Jank?nas

Reply by email

Martin Frb
to Valdas Jankūnas

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.

Valdas Jank?nas wrote 22 lines
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

Reply by email

Valdas Jankūnas
to Martin Frb

2015.03.16 23:37, Martin Frb ra??:

Or open the breakpoint dialog (menu view > debug windows). MAybe you

This helped. There I found that one breakpoint is in file that is long gone from project, so I deleted that breakpoint and now I able to debug.

Thank you!

Valdas Jank?nas

Reply by email