autosave feature help

Jan Holesovsky kendy at suse.cz
Mon Mar 4 06:52:54 PST 2013


Hi Krisztian,

Krisztian Pinter píše v So 02. 03. 2013 v 12:05 +0100:

> I'd like to request some help with implementing a feature. I'm a bsc
> student working as a trainee and I'm still very unfamiliar with the LO
> codebase.
> I was given the task to implement
> this: https://bugs.freedesktop.org/show_bug.cgi?id=47011

Thank you for that, great work so far!

> I have added a checkbox in Tools -> Options -> Load/Save -> General
> with the text "Save document when saving AutoRecovery information",
> copying how other checkboxes work. I triple checked everything, but
> this checkbox still won't save its state.

Unfortunately cannot check myself ATM, but have you tried to debug that
a bit?

First you need to rebuild the relevant part with debug info, like:

make sfx2.clean
make debug=true sfx2

If you have a developer installation (you have done 'make dev-install'),
then you just run LO in the debugger:

cd installation/program
. ooenv
gdb --tui ./soffice.bin

[Some do not like the --tui (text user interface), but it works for me
pretty well when you get used to pressing Ctrl-L when the screen gets
messed up :-)]

Set the breakpoint where you'd expect the code to appear using 'break',
and then start LO using 'run'.

If it is hit, you can investigate what is going on; if not, some further
investigation is needed I am afraid - let us know then.

All the best,
Kendy




More information about the LibreOffice mailing list