As I remember, to be able to run console programs from Lazarus on a Mac, one needs to configure the debugger
Heck! That could definitely be better documented. It seems very odd that one should need to configure debugger when not running a program in debug mode, but I cannot dispute that your suggestion did allow program to run.
The LLDB + FpDebug should be pre-set. If using the installer, the installer has (should have?) a default config file, that contains this. But I think even without is should happen.
Though I don't have a Mac myself, and can't test...
The "launch console" is a bit more problematic.
Because
- it is only needed for console apps
- it is a global setting for all apps
So users creating GUI apps may not like it. But users creating console apps do need it.
Currently the best that can be done, is to configure 2 setups, and chose a debugger backend (from the 2) in the Project options (there is a page debugger backend).
Ideally this flag (in the debugger config) should have a setting "automatic", and follow the project type => but that hasn't been implemented. (And there are currently no plans on my site, or that I know off / so it will be contribution depending)
when not running a program in debug mode
Did you either
- Run without debugger
- disable in project options "Run use debugger" (not sure if that is in 4.n or only 4.99)
?
Otherwise you always run in the debugger when running from the IDE.
"Create build modes for release/debug" should set/disable the "run uses debugger". So release builds should not use the debugger (but again not sure 4.n or 4.99)