![]() |
#1 |
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Debugging custom plugins
In the user manual section on developing and debugging custom plugins, it says that you can rebuild your plugin while calibre is running, then execute the updated plugin code without relaunching calibre.
After making changes to my code and saving them as described in the manual, I'm not seeing the effects of the changed code. I've inspected the plugin zip file in the calibre config directory and confirmed that the changes were in fact written to the zip file. Is there some other action I need to take to cause calibre to reload the updated plugin? It would save a lot of development time to be able to use this feature. G EDIT: I'm using the demo code supplied by Kovid, and changing some items in the main.py module, in the DemoDialog.__init__() method. Last edited by GRiker; 04-08-2011 at 01:02 PM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,171
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You have to restart calibre for the changes to show up.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,720
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
The exception I found to this was for the metadata download plugins. For those I found it is possible to edit the code, then re-add the plugin using Preferences->Plugins while keeping the same Calibre instance open and it does use the new plugin code.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom GUI plugins for Calibre here... | kiwidude | Plugins | 299 | 01-27-2011 06:38 PM |
Debugging intermittent failures, how to? | guterm | Recipes | 9 | 01-16-2011 01:20 AM |
Can plugins have a custom UI dialog? | kiwidude | Plugins | 9 | 01-03-2011 07:15 PM |
PRS-500 Tools for debugging javascript ...? | Clemenseken | Sony Reader Dev Corner | 6 | 05-03-2008 02:51 PM |
iLiad Debugging and the iLiad | scotty1024 | iRex Developer's Corner | 2 | 10-23-2006 03:43 PM |