Skip to main content

Python Language's Another Nonpareil remote Debugger

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

plan_d-0.2.2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file plan_d-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: plan_d-0.2.2-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.10 Linux/6.5.0-1025-azure

File hashes

Hashes for plan_d-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3a9a86a11e4326ef388a4de7295adc2ab2ccb40d15652c29d21bedbb92cdc542
MD5 932838b0b0c638ec34240dda7380b860
BLAKE2b-256 371233ae8e5564ce1a0e09e4d534e97bc0414c8d310ee8bc59abb305a070df51

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page