Skip to main content

plan-d

Ruff PyPI - Version PyPI - Python Version GitHub License

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.

syntax highlight
support multiline

Debugger commands

(h)elp
(v)ars
vt|varstree
(i)nspect
bt

Print object info

IPython magic command

magic command
time

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.

Metadata

Release files for plan-d 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for plan-d 0.2.4
File Interpreter ABI Platform Actions
plan_d-0.2.4-py3-none-any.whl Python 3 none any Details for plan_d-0.2.4-py3-none-any.whl

Release files / plan_d-0.2.4-py3-none-any.whl

Download URL plan_d-0.2.4-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c38e3186842aad2f15cfd927e9f4ae7c351c1c7afe07eef094150a1d8a6997cc
BLAKE2b-256 checksum
How to use checksums
472ef8fb1b36e9b1435d01fc70e40245fdb4ccc2ae9f475f8341f3ad46c2a30f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.12 Linux/6.11.0-1012-azure

Security for plan-d 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page