top | item 10783977

(no title)

wesleyy | 10 years ago

What's the advantage of Q over pdb?

discuss

order

StavrosK|10 years ago

First 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.

scrollaway|10 years ago

They 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. :)