11-19-2014, 10:56 PM | #1 |
Plugin Developer
Posts: 6,510
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Ctrl-Shft-R Debug vs calibre-debug -g
I've noticed a couple of odd things about the two debug modes. I'm using caliber 2.10 on Win8.
First: If I'm already in Ctrl-Shft-R debug mode and hit Ctrl-R to restart, calibre restarts and says it's in debug mode with the same debug file, but it doesn't write anything more to the debug text file. It looks like there should be another check at calibre/gui2/main.py:347. I don't know what's most appropriate. Perhaps: u'--gui-debug' in sys.argv ? Second: Trying to debug a FileTypePlugin, print statements from run() etc don't show up in the console output when I'm using calibre-debug -g. They do appear in the text file when using Ctrl-Shft-R debug. I don't have any ideas about that one. |
11-20-2014, 05:01 AM | #2 |
creator of calibre
Posts: 44,277
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
https://github.com/kovidgoyal/calibr...51632300cb39b2
As for the second, I think that's a peculiarity of the windows console, calibre-debug -g should work if you redirect its output to a file, like this calibre-debug -g > log.txt 2>&1 |
Advert | |
|
11-20-2014, 06:33 AM | #3 |
creator of calibre
Posts: 44,277
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
And here's a fix for the second issue, windows is such a pain
https://github.com/kovidgoyal/calibr...b9b5991f0c0721 |
11-20-2014, 09:57 AM | #4 |
Plugin Developer
Posts: 6,510
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Both work for me. Thanks!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Does anyone know how to read a Calibre debug log file? | TomOnMobread | Calibre | 7 | 12-11-2012 01:57 PM |
Calibre + Kobo Touch debug info | Blue2u | Devices | 7 | 04-09-2012 10:27 PM |
Calibre - Kobo Vox debug | jeather | Devices | 4 | 11-01-2011 07:43 PM |
Calibre debug file | meme | Calibre | 7 | 02-01-2011 04:45 PM |
calibre-debug --update-module | iain_benson | Calibre | 4 | 10-02-2009 07:00 PM |