12-24-2019, 05:59 PM | #1 |
Addict
Posts: 381
Karma: 401800
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad air/ kindle paperwhite
|
Debug calibre/plugins with visual studio
After trying for more than a day I have to ask what steps are needed totdebug calibre with visual studio 2017/2019.
I wanted it to use to migrate plugins for both python 2 and 3. I tried all the things noted in: http://manual.calibre-ebook.com/develop.html and this https://www.mobileread.com/forums/sh...d.php?t=251201. But they are based on VS2013. I dit set CALIBRE_DEVELOP_FROM right and running calibre it uses the source code. So I am stuck witch calibre 4.99 and the source of calibre-fork py3. I only get: failed to attach debugger, Python interpreter not found. Is there someone who can give me a lead. (I also tried visual studio code,but without succes). But after all just debuging calibre is not enough. I need it for the plugins. Which extra steps are needed to debug them, because plugins are zipped. I am using win 7 - 64 bit, running calibre main on 32 bits and the 4.99.2 version at 64 bits. Debugging with python 3.6 or 3.7 64 bits. Thanks in advance. |
12-24-2019, 09:57 PM | #2 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No idea, I've never actually used an IDE debugger myself, just print(). Why do you need a debugger?
|
Advert | |
|
12-25-2019, 02:24 AM | #3 | |
Addict
Posts: 381
Karma: 401800
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad air/ kindle paperwhite
|
Quote:
Till now I indeed use print() and switch to editor, copy code and run calibre-debug again. I would like to avoid these steps ( talking about plugins). |
|
12-25-2019, 05:59 AM | #4 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Weel, as I said, I have never used one, but the error you point to indicates your IDE is unable to find a python interpreter. Debugging in calibre works by running a remote python debugger inside the calibre code and the connecting to it in your IDE.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A free Calibre Windows development environment using Visual Studio | ShellShock | Development | 6 | 12-12-2020 09:56 PM |
Debug Mode and plugins | apprenticeharper | Development | 3 | 04-29-2016 01:59 AM |
Ctrl-Shft-R Debug vs calibre-debug -g | JimmXinu | Development | 3 | 11-20-2014 09:57 AM |
eBook Library Blocked by Visual Studio | MickeyC | Sony Reader | 14 | 10-23-2009 08:15 AM |