Python debugger is a great tool which can save a lot of development time. Unfortunately it is extremely slow which makes a lot of people reluctant to use for bigger projects.
I decided to add some serious optimisations to it and got some amazing results which is about 80x speed up. Now execution and startup time is the same as without using debugger.
This feature is available for my project https://github.com/reloadware/reloadium
Also for the PyCharm plugin
https://plugins.jetbrains.com/plugin/18509-reloadium--hot-reloading--profiling-for-python
This comes with a limitation though:
- Only functions that have breakpoints in them will be debugged (by default python debugger traces everything even standard library)
This feature should still be very useful when we only want to investigate couple of functions.
Other reloadium features like hot reloading will also work in fast debug mode.
Top comments (0)