3 ms·
What's the advantage of Q over pdb?
by wesleyy 11y ago
What'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.