|  12-20-2022, 04:44 AM | #1 | 
| Zealot            Posts: 136 Karma: 10280 Join Date: Oct 2016 Device: none | 
				
				Print() in Restart in debug mode
			 
			
			Hello, Since version 6.4 of Calibre, I no longer see the Print() in the log file in Restart in debug mode (CTRL+Shift+R). On the other hand, the Print() appear well in the console with the calibre-debug -g command. For example, if I run the Comments Cleaner plugin: - calibre-debug -g command, I get the DEBUG lines in the console - Restart in debug mode: no DEBUG lines in the log file For my personal plugin tests, I use Calibre Portable and when I created a bug to report the problem, I forgot to specify that I was in Restart in debug mode. The bug was invalidated by Kovid rightly, either because he checked with the command, or indeed the Print() appeared well in Restart in debug mode. I'm on Windows 10 and maybe I have an environment problem. 1- Could someone confirm (or not) that the Print() appear in the log file in Restart in debug mode? 2 - Is it possible to launch Calibre Portable with the calibre-debug -g command? Thank you for your answers | 
|   |   | 
|  12-25-2022, 05:19 AM | #2 | |
| Wizard            Posts: 1,292 Karma: 1428263 Join Date: Dec 2016 Location: Goiânia - Brazil Device: iPad, Kindle Paperwhite, Kindle Oasis | Quote: 
 2) Just use the full path to "calibre-debug.exe", inside "Calibre Portable\Calibre\" | |
|   |   | 
| Advert | |
|  | 
|  12-26-2022, 04:15 AM | #3 | 
| Zealot            Posts: 136 Karma: 10280 Join Date: Oct 2016 Device: none | 
			
			Thanks Thiago, 1- So I do have an environmental problem. P.S. You are right: I copied the label of the Preferences menu which should be CTRL + Shift + r (or CTRL + R) 2 - With the full path of Calibre Portable and >calibre-debug.exe -g, I run the correct version (for example 6.4) of my Calibre Portable but the libraries and the configuration are those of my current reference Calibre (6.10). Sorry for my English, I'm French | 
|   |   | 
|  12-26-2022, 08:32 AM | #4 | |
| Wizard            Posts: 1,292 Karma: 1428263 Join Date: Dec 2016 Location: Goiânia - Brazil Device: iPad, Kindle Paperwhite, Kindle Oasis | Quote: 
 Try this: 1) Set up a .bat file like this: Code: @echo off set CALIBRE_CONFIG_DIRECTORY=..\Calibre Settings "D:\Calibre Portable\Calibre\calibre-debug.exe" -g 2) Use this .bat file to open calibre. | |
|   |   | 
|  12-26-2022, 11:44 AM | #5 | |
| Zealot            Posts: 136 Karma: 10280 Join Date: Oct 2016 Device: none | 
			
			Thank you for everything Thiago, That works well. I only had to modify the code of the batch, because I think my directory path was too long which caused an error. Quote: 
 | |
|   |   | 
| Advert | |
|  | 
|  12-27-2022, 02:29 PM | #6 | 
| Bibliophagist            Posts: 48,102 Karma: 174315444 Join Date: Jul 2010 Location: Vancouver Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos | 
			
			Looking at your path, I would suggest moving your calibre portable directory outside of your Documents folder. i.e. "C:\Users\christophe\C6.4.0\Calibre Portable" | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Debug on restart | iain1940 | Calibre | 2 | 05-03-2022 03:47 PM | 
| Debug Mode | Rellwood | Calibre | 3 | 01-23-2022 05:12 PM | 
| trying to debug, print not printing! | hobleyd | Development | 4 | 11-08-2021 08:58 PM | 
| Python newbie, need help about print statement debug | TonyAn | Calibre | 3 | 05-17-2017 03:46 PM | 
| How do you get out of debug mode? | Rellwood | Calibre | 3 | 08-01-2016 08:34 PM |