3 ms·
Not really 2015 but Q! https://pypi.python.org/pypi/q https://pypi.python.org/pypi/q Print-debugging on steroids. This really does make things so much easier,
by scrollaway 11y ago
Not really 2015 but Q! https://pypi.python.org/pypi/q https://pypi.python.org/pypi/q
Print-debugging on steroids. This really does make things so much easier, especially when dealing with huge apps you don't have time to learn. Not just useful as a dev but also as a sysadmin.
- wesleyy 11y agoWhat's the advantage of Q over pdb?
- scrollaway 11y agoThey don't do the same thing. Q does printing. import q; q(var) -> prints var to /tmp/q, with syntax highlighting, separate files for big output, etc. It can also do lots of other cool things, cf 1-page documentation in the link. :)
- StavrosK 11y agoFirst of all, pudb is fantastic, just use it over pdb all the time. q is for when you want to log data, pudb is for when you want to step through and evaluate lines in-context. It's very possible that you'll want to use both together.