Recent

Author Topic: Debugging a new package?  (Read 423 times)

dpap

  • New Member
  • *
  • Posts: 21
Debugging a new package?
« on: January 17, 2025, 01:45:17 am »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 10792
  • Debugger - SynEdit - and more
    • wiki
Re: Debugging a new package?
« Reply #1 on: January 17, 2025, 10:13:05 am »
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.

 

TinyPortal © 2005-2018