Coder Social home page Coder Social logo

plan-d's Introduction

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.

plan-d's People

Contributors

zen-xu avatar pre-commit-ci[bot] avatar

Stargazers

 avatar hanhotfox avatar TheodoreGao avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.