Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 11:18 PM   #1
wan1967
Junior Member
wan1967 began at the beginning.
 
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.
wan1967 is offline   Reply With Quote
Reply

Tags
development, plugin, vscode


Forum Jump

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


All times are GMT -4. The time now is 09:08 AM.


MobileRead.com is a privately owned, operated and funded community.