Debugging a new package? lazarus / 12-Debugger ---------------------------------------------------------------------- dpap · 2025-01-17 00:45 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 · 2025-01-17 09:13 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.