[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Plugin development - old library version keeps being used after recompiling
From:       David Lerch <alemariusnexus () gmail ! com>
Date:       2021-01-17 0:58:57
Message-ID: CAMq1Cgahp-5fLnn0zcwCjhXRsOjFGZEBhVE4Kf1s+1bESBW9KQ () mail ! gmail ! com
[Download RAW message or body]

Hi Méven,

I have tried KDE_FORK_SLAVES=1 and it does seem to do something.
Ideally that should allow me to run Dolphin under gdb and then set
breakpoints in my plugin code on that same gdb instance, right? I
haven't had much luck getting gdb to break in my plugin code though.
I'm used to using the debugger in Eclipse IDE, but even with
"Automatically debug forked processes", that seems to just freeze the
debugger. I tried command line gdb instead (which I'm not very good
at) with various combinations of `set detach-on-fork` and `set
follow-fork-mode`, but gdb doesn't seem to pick up on breakpoints in
my plugin code, even when the code with the breakpoint is running.

Have you managed to get a debugger working in plugin code? If so, is
there anything special you have to configure for it to work?

Thanks,

David

Am Sa., 16. Jan. 2021 um 13:31 Uhr schrieb Méven <meven29@gmail.com>:
> 
> Hi David,
> 
> Yes there is a cache, so applications don't have to look for plugins on every \
> launch. You can flush it with `kbuildsycoca5`.
> 
> You may want to launch dolphin with `KDE_FORK_SLAVES=1 dolphin` to avoid forking \
> the kio workers in separate processes. This can help debugging dramatically.
> 
> Cheers,
> 
> --
> Méven


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic