Forum > Debugger

Debugging a new package?

(1/1)

dpap:
I am new to Lazarus and I am trying to create a new application with a new component.
I write the code, with the settings in the attached image and after compiling it I rebuild Lazarus and run the application in debug.
I can put breakpoints in the application code but not in the component code. Why?

Martin_fr:
Packages have their own settings for debug info.

You can

A) Open each package (like LCL) and enable debug info in each packages option

B) Menu: Tools > Configure Build Lazarus
Add "custom option" -gw3
This will affect most packages (like LCL, LCLBase)

C) Project Options -> Additions and overrides
Add new override for all targets: *
Then add custom option -gw3


In each case, that will NOT include RTL and FCL.
For those a custom FPC build in required.

Navigation

[0] Message Index

Go to full version