View Single Post
Old 03-30-2014, 05:47 AM   #7
trying
Member
trying doesn't littertrying doesn't litter
 
Posts: 21
Karma: 104
Join Date: Oct 2013
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Just for giggles I added a remote python debugger to calibre. https://github.com/kovidgoyal/calibr...fd9c65f8c8bffb
Nice!

I spent a few hours and got debugging Calibre v1.29 plugins to work with PyCharm. Unfortunately it is only possible with PyCharm Professional, since you need the ability to create Python Remote Debug configurations which is not possible with the free PyCharm Community Edition.

Since there is already the HowTo: Debug calibre with Eclipse/PyDev thread (which I just discovered) there probably won't be much demand for debugging with PyCharm Pro.

For those interested, the process is vaguely similar. You start up a Debugger server and add code to your plugin to call settrace(). However, PyCharm also requires what they call "Path mappings" that are currently a little buggy (at least on Windows 7). If they fix this I might start another thread that explains how to debug Calibre with PyCharm Pro in more detail.
trying is offline   Reply With Quote