[Lazarus] Lazarus 2.0.6 IDE suddenly disappeared losing a lot of edits...

Bo Berglund bo.berglund at gmail.com
Sun Nov 24 18:27:40 CET 2019

On Sun, 24 Nov 2019 14:46:11 +0100, Martin Frb via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>On 24/11/2019 10:22, Bo Berglund via lazarus wrote:
>> On Sun, 24 Nov 2019 03:21:11 +0100, Martin Frb via lazarus
>> <lazarus at lists.lazarus-ide.org> wrote:
>>> If you can.... Run your Lazarus in gdb.
>>>     gdb path/to/lazarus
>>> and then in gdb hit r and return.
>> I can use different versions on the same system. So the command to
>> start lazarus in the desktop file is:
>> Exec=/home/pi/dev/lazarus/2.0.6/startlazarus
>> --pcp=/home/pi/.lazarus_2.0.6 %f
>> What should I do in order to make this work through gdb?
>gdb path/to/lazarus
>r  --pcp=/home/pi/.lazarus_2.0.6
>path/to would be either
>- if writeable: /home/pi/dev/lazarus/2.0.6/
>- otherwise /home/user/.lazarus_2.0.6/

I tried but....
pi at rpi4-gui:~ $ gdb /home/pi/dev/lazarus/2.0.6/lazarus r
gdb: unrecognized option '--pcp=/home/pi/.lazarus_2.0.6'
Use `gdb --help' for a complete list of options.

So now the --pcp... argument to lazarus becomes an argument to gdb???

>(startlazarus is only needed for: restart and if your laz-install dir is 
>write-protected (admin install for all users). In the latter case the 
>rebuild IDE goes into the config path, so each user can have its own 

Does this mean that I should change the Exec in the desktop file
should be changed from startlazarus to simply lazarus?

>The %f is missing, so you cant double click the file.
>But you need to run gdb from a terminal (so you can execute bt later), 

>so you need to open the file once the IDE runs.

Normally the previously open project is loaded as soon as the Lazarus
IDE runs, is this not going to happen now (provided one can get rid of
the error message above)? I assume you mean open the project?

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list