Python Language's Another Nonpareil remote Debugger
Project description
plan-d
Python Language's Another Nonpareil remote Debugger
Table of Contents
Introduction
plan-d
is a remote debugger for Python, designed to provide an unparalleled debugging experience. It allows developers to debug Python applications running on remote servers seamlessly.
Features
- ✨ Provide a more pretty printing using
rich
- 🕹️ Remote debugging capabilities
- ⌨️ Code autocompletion
- 🔴 Breakpoint management
- 🔎 Variable inspection
- 🔄 Terminal size auto-adjustment
- 🪄 Support for IPython magic commands
- 🐍 Support for multiple Python versions
Installation
To install plan-d
, you can use pip:
pip install plan-d
Gallery
On the server side, you can set a breakpoint with plan_d.set_trace()
. When the server reaches the breakpoint, it will print the connection command.
Debugger commands
Print object info
IPython magic command
Auto launch debugger when exception
plan-d
supports automatically launching the debugger when an exception occurs.
You can enclose code with the with statement to launch plan-d
if an exception is raised:
import plan_d
with plan_d.lpe():
[...]
Or you can use lpe
as a function decorator to launch plan-d
if an exception is raised:
import plan_d
@plan_d.lpe()
def main():
[...]
When the client connects, the stack information will be displayed.
FAQ
How to exit the debugger?
Exit by typing the command exit
or pressing ctrl+d.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file plan_d-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: plan_d-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.9 Linux/6.5.0-1024-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fc057c9a35e6b39d900ceac9eb0183e00abc721eb807ec4a0f3746cdc4451c4 |
|
MD5 | 59a65b60b3e67e276af3e5564f8f27bf |
|
BLAKE2b-256 | 956e1129a4ec7442850df06a2da4049a15e7b843ffa098b2de0f1972809993d2 |