|
I want to use VSCODE for Calibre plugin development.
I tried remote debugging from VSCode by following the instructions on the Calibre website about setting up the Calibre development environment and using the debugger with my preferred Python IDE, but it hasn’t worked well.
I set the environment variable CALIBRE_DEVELOP_FROM to calibre\src from the Calibre source code I checked out from GitHub, launched the Calibre binary from the command line, and was able to attach to the Calibre process from VSCode.
When debugging in VSCode, do I need to insert the following somewhere?
from calibre.rpdb import set_trace
set_trace()
What I actually want to do is debug a custom plugin I created for Calibre. Debugging with print statements has its limits, and my goal is to use an IDE to debug my custom plugin.
For example, I want the execution to stop when the plugin icon is clicked.
|