Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-07-2016, 04:50 PM   #1
toomuchreading
Groupie
toomuchreading once ate a cherry pie in a record 7 seconds.toomuchreading once ate a cherry pie in a record 7 seconds.toomuchreading once ate a cherry pie in a record 7 seconds.toomuchreading once ate a cherry pie in a record 7 seconds.toomuchreading once ate a cherry pie in a record 7 seconds.toomuchreading once ate a cherry pie in a record 7 seconds.toomuchreading once ate a cherry pie in a record 7 seconds.toomuchreading once ate a cherry pie in a record 7 seconds.toomuchreading once ate a cherry pie in a record 7 seconds.toomuchreading once ate a cherry pie in a record 7 seconds.toomuchreading once ate a cherry pie in a record 7 seconds.
 
toomuchreading's Avatar
 
Posts: 168
Karma: 1720
Join Date: Feb 2009
Location: Canada
Device: PRS-T1
Run Calibre in Debug Mode Output to File

I'm having an intermittent problem, and wold like to start up Calibre every time in debug mode so I can post what's going on.

Are there any parameters that I can add to my shortcut to have Calibre start up in debug mode, like it does when you restart Calibre in debug mode from preferences?

I'd like to run right from the get go in debug mode with the output going to a text file, since, every time I restart Calibre in debug mode, the problem goes away. It always goes away when I restart Calibre, whether in debug mode or not, so I'd like to start up in debug mode to begin with.

I'd like to try to capture a few failures to see what is going on if I can...
toomuchreading is offline   Reply With Quote
Old 03-07-2016, 04:58 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
All you need to do is start calibre with the command "calibre-debug -g" and optionally redirect that to a file.

I use linux, so it is easy to override calibre's startup command with a shellscript in ~/bin/calibre :
Code:
#!/bin/bash

if [ $# -eq 0 ] || [[ "$1" = "--detach" ]]; then
    echo -e "\n\n\nStarting calibre at $(date).\n\n\n" >> /tmp/calibre-debug-$USER.log 2>&1
    calibre-debug -g 2>&1 | tee -a /tmp/calibre-debug-$USER.log 
else
    /usr/bin/calibre $@
fi
[eschwartz@vostro ~/git/pkgbuilds]$
On Windows, you will have to start calibre from a batch file "calibre-debug.bat":
Code:
calibre-debug -g > %TEMP%\calibre-debug-%USERNAME%.log
And make sure to always start using the batch file.
eschwartz is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start Calibre on Windows in debug mode hakan42 Development 9 04-10-2024 05:34 PM
Regarding the conversion in debug mode of calibre user manual kevin4fly Recipes 2 06-10-2015 09:23 AM
Does anyone know how to read a Calibre debug log file? TomOnMobread Calibre 7 12-11-2012 01:57 PM
Calibre debug file meme Calibre 7 02-01-2011 04:45 PM
Hanvon N526 - Debug Output paralax Calibre 0 08-09-2010 09:36 PM


All times are GMT -4. The time now is 01:07 PM.


MobileRead.com is a privately owned, operated and funded community.