I made a few changes to the Windows installer.
I added the possibility of providing a 2nd FPC that has debug info included.This requires Lazarus 4.99. So the test-downloads are build on the git main branch.
The test builds all are build with the FPC 3.2.4-rc branch.
The build contain the normal setup files.
- those now allow to install into a folder with spaces, but this is not tested, and at your risk.
And there is a file
fpc-3.2.4-rc1-30dd873d32-win64-for-lazarus.exe (win32 for 32 bit). The filename should contain "debug", but I forgot. This contains the debug fpc. This file is to be installed as add-on, into the same folder as lazarus is installed to.
The file install an fpc in your-lazarus-dir/fpc-dbg/*
Once this is installed you can change between the 2 compilers by changing the path between fpc and fpc-dbg.This may not be the most convenient, but there is currently no way for 1 single fpc to produce both kind of executables.
If you are testing this you may also want to look at "excluded routines" in the debugger settings (global and/or project). This allows you to prevent stepping into routines you aren't interested in (e.g. maybe object checks before calling a virtual method).
The test installers are here:
32bit:
https://sourceforge.net/projects/lazarus-snapshots/files/Window%2032/2026-07%20lazarus-4.99-fcc2360a44-fpc-3.2.4-rc1-30dd873d32/64bit:
https://sourceforge.net/projects/lazarus-snapshots/files/Window%2064/2026-07%20lazarus-4.99-fcc2360a44-fpc-3.2.4-rc1-30dd873d32/