Our great sponsors
ipdb | jurigged | |
---|---|---|
6 | 15 | |
1,811 | 1,008 | |
- | - | |
2.9 | 4.8 | |
9 months ago | 4 days ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ipdb
-
The new pdbp (Pdb+) Python debugger!
Why not just use Python’s built-in pdb debugger or another existing one like ipdb or pdbpp?
-
Why do people say that Neovim cannot be an IDE?
Unfortunately, I couldn't find any official documentation. But here is a small cheatsheet about it and here is there is github repo.
-
Debugging Python programs without an IDE
Integration of IPython pdb
-
You say “cave dweller debugging”, I say debug logging
One thing I have used is drop into the Python debugger (also ipdb) from within a signal handler. Then I can run a kill, and have it drop into the debugger.
There are some of cute hacks to get a remote debugger which I haven't used in years.
https://github.com/sassoftware/epdb can start and connect to a remote debug instance
https://github.com/gotcha/ipdb
- Debug in VIM
-
Reloadr – Hot code reloading tool for Python
Now tie in some ipdb [1] and you have a pretty sweet setup. Also depending on your serving framework it might also have hot reloading as well, tornado, flask, etc.
[1]https://github.com/gotcha/ipdb
[2] https://www.tornadoweb.org/en/stable/autoreload.html https://werkzeug.palletsprojects.com/en/0.14.x/serving/
jurigged
-
[D] Yann LeCun's Hot Take about programming languages for ML
If that interests you, I made a package called jurigged that basically does autoreload but asynchronously on Python in general (i.e. you can write jurigged script.py instead of python script.py; it works in a separate thread and can also work in notebooks). It's more surgical than what the notebook does in that it only hot swaps code in changed functions and does not re-execute anything else. This feature is cool too, IMO.
-
Debugging Lisp: in CL we can resume a program from any point in the stack
Some of the basic hot-loading features can probably be approximated in Python. Here's some from my bookmarks(i've not tried them personally)
- https://github.com/breuleux/jurigged
- https://github.com/reloadware/reloadium
I would imagine lisp can do this on a whole different level. Emacs seems like a testament to that. Basically the entire editor feels like eval()
- So you're using a weird language
-
Reloadium – Hot Reloading for Python (a.k.a. Edit and Continue)
I've been using jurigged [0] for hot code reloading which is great. It works by replacing code objects in place at the function level which naturally handles many cases like applying to existing objects, avoiding loading a module multiple times, etc. As others noted the actual source of this one is not there so it's hard to know what it's doing. The published package contains a binary shared library so I suppose it's written as a CPython extension.
[0] https://github.com/breuleux/jurigged
- jurigged - Hot reloading for Python
What are some alternatives?
pudb - Full-screen console debugger for Python
reloading - Change Python code while it's running without losing state
pdbpp - pdb++, a drop-in replacement for pdb (the Python debugger)
reloadium - Hot Reloading and Profiling for Python
flask-debugtoolbar - A toolbar overlay for debugging Flask applications
PyDev.Debugger - Sources for the debugger used in PyDev, PyCharm and VSCode Python
vimspector - vimspector - A multi-language debugging system for Vim
watchfiles - Simple, modern and fast file watching and code reload in python.
django-debug-toolbar - A configurable set of panels that display various debug information about the current request/response.
ipython - Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
wdb - An improbable web debugger through WebSockets
PythonHotswap - Hotswap Python functions. And persistence of runtime.