|
|
#1 |
|
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Nov 2022
Device: ipad
|
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. |
|
|
|
![]() |
| Tags |
| development, plugin, vscode |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Plugin Development | KevinH | Plugins | 608 | 10-24-2025 12:01 PM |
| Anyone able to get VSCode's remote debugger to work with calibre? | acarter5 | Development | 3 | 02-24-2022 04:47 AM |
| Dockerise multiple Calibre releases for plugin development | wolf123 | Related Tools | 1 | 02-06-2021 04:12 AM |
| How-to: Debug calibre plugin development with PyCharm Pro | harmtemolder | Development | 2 | 11-09-2020 06:18 AM |
| Calibre plugin development - Newbie problems | minstrel | Plugins | 5 | 04-12-2009 01:44 PM |