debugging QT plugins, was: debugging ofx file import
Jack
ostroffjh at users.sourceforge.net
Mon Jan 21 20:40:10 GMT 2019
On 2019.01.21 13:18, Thomas Baumgart wrote:
> On Montag, 21. Januar 2019 17:02:56 CET Jack wrote:
> > On 1/21/19 10:42 AM, Thomas Baumgart wrote:
[....]
>>>> So it finds the new plugin four times while looking for metadata,
>>>> but finds the system version twice, and still manages to load the
>>>> system version instead of the new version.
> > >> Can anyone tell what I'm doing wrong?
> > > Nothing. KMyMoney's plugin loading was broken. I just fixed that
> in the 5.0 branch. See
> https://commits.kde.org/kmymoney/f69ee7d76454a7e57fb998057ce16062c17702e4
> for details what went wrong.
> >
>> Thanks for that. I had been wondering if it was something built in
>> to QT itself. I'll test this later today. It seems like all the
>> work any of us had done with running from an install in or near the
>> build dir really didn't work, always preferring the old (system
>> installed) plugins, except that it did find any new plugins that
>> didn't exist in the system install. It might be nice as a future
>> enhancement for the app to be able to show exactly which plugins
>> have been loaded, and from where. (Perhaps as part of the plugin
>> view of the configure KMyMoney display?)
>
> My commit contains code that prints this information to the console
> ;) It's what I added to see what is going on and I left it in for
> simplicity and as a feature for debugging plugin loading problems in
> the future.
I can confirm that this patch works as expected. Setting
QT_DEBUG_PLUGINS=1 (any non 0 value, I believe) gives the same sort of
debugging output, but much more verbose. Now I can actually go back to
debugging. :-)
>
> Regards
> Thomas Baumgart
Jack
More information about the KMyMoney-devel
mailing list