Skip to content

Python microdebugger inspired by Ruby's binding.pry

License

Notifications You must be signed in to change notification settings

octehren/Prython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prython

Inspired by Ruby's pry gem and this snippet.

Prython is a debugging aid, made to be lightweight and very easy to use. If you want to take a look at Python's official debugger, this is it.

Installation

Python 3

Install from PyPi with:

pip install prython

or, in case you have 2 versions in your system and hasn't mapped Python 3 as the main one:

pip3 install prython

Usage

All of this package's methods are listed below (I told you it was lightweight and easy to use). Remember to import prython at the top of your file.

pry()

import prython

a = "Are you prying?"
def example_function():
    b = "With prython?"
    prython.pry()
    c = "Yep!"

If you run this file, say, from the command line, a REPL interpreter will pop up at the context of the line calling prython.pry(), which means you will have access to variables a and b but not c, as the line wasn't ran when prython was called.

TODO:

About

Python microdebugger inspired by Ruby's binding.pry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages