QFireBug OutputDatabaseProfile not working

Login or register to post comments
8 replies [Last post]
Offline
Joined: 04/22/2009

Hello,

It seems that the database output profiling does not work in the QFirebug example. It seems that the profile array returned by the function 'debug_backtrace' in QDatabaseBase::LogQuery has a different structure than QFireBug expects. Any idea why, because it seems to work with Postgres?

Thanks

Helge

alex94040's picture
Offline
Joined: 11/06/2008

Yeah, I'm getting errors in http://examples.qcu.be/assets/plugins/QFirebug/example/qfirebug.php when I press Button B.

Helge, do you have some time to investigate and fix up the plugin?

Offline
Joined: 04/22/2009

As it is for my own benefit I will look into that. :-) Might take a day or two though.

Cheers

Helge

Offline
Joined: 04/22/2009

Hello Alex,

Can you please test the fix? Was easier than I previously thought, may be... :-) You have changed the profile array in QDatabase when logging the query in QDatabase::LogQuery.

Cheers

Helge

alex94040's picture
Offline
Joined: 11/06/2008

Helge, can you please create a new version of the plugin - including updating the link to download it on the plugin site - I'll be happy to test it/install it on the examples.qcu.be site?

Offline
Joined: 04/22/2009

> - including updating the link to download it on the plugin site

How do I do that?

Helge

alex94040's picture
Offline
Joined: 11/06/2008

Just go to http://trac.qcu.be/projects/qcubed/wiki/plugins, then log in and click Edit at the bottom. Change the link to the .zip download for the plugin to be the link to the new version that you check in.

Offline
Joined: 04/22/2009

Done.

Helge

alex94040's picture
Offline
Joined: 11/06/2008

Awesome. Tested and pushed the new release to the Examples site. Works like a charm - thanks for your contribution!