Hi Martin,
thanks for your quick reply.
- Open any project (or a new empty)
- Edit them in Tools/Options
- Go to Project/ProjectOptions
- Tick the chekbox "Save as default" (bottom of the dialog)
- Close dialog wint ox
Should do / not tested.
I tried it, it doesn't seem to work.
I also see a problem here. Options such as this (debugger language exceptions) could be set in 2 different ways:
a) As general IDE option (the way Delphi does it). This way it applies to every project. The option would be set in a IDE-specific config file, such as environmentoptions.xml.
b) As project-specific option, then there should be a transparent, configurable way to set defaults for new projects.
Since debugger language exceptions are more relevant for working in the IDE than anything else, I strongly favor a). As far as I know, this is also how Delphi has done it ever since.
Currently Lazarus uses a mix, as far as I can see, and that's a problem. The debugger language exceptions are set in Tools -> Options, so as such they should be assumed to be an IDE wide option, but are in fact stored for every project individually in the project's .lpi (!). Yet under Project -> Project Options there's no trace of them. I don't know what project specific options have to do in Tools -> Options, especially considering that they are *not* used as defaults.
But I am new to Lazarus, so I'm not sure if all these observations are correct...
Otherwise "primary config path" projectoptions.xml
e.g
C:\Users\martin\AppData\Local\lazarus\projectoptions.xml
~/.lazarus/projectoptions.xml
Hum, I can't find any info on this... I created a projectoptions.xml file and put the <Debugging> section in, and the file does get added to by Lazarus, but they doesn't seem to be considered when a new project is created. And even if they would, this still leaves the inconsistency regarding the fact that they are normally set via Tools -> Options.
All the best,
Stephan