[Yt-dev] debugging decorator
Matthew Turk
matthewturk at gmail.com
Mon Mar 23 21:19:20 PDT 2009
Hi guys,
I just added a new decorator in r1229. This is the 'run_pdb'
decorator, which will drop you to an interactive pdb shell before
calling the function that it is applied to. For instance, if I
applied it to, say, _is_fully_enclosed inside BaseDataTypes, whenever
that function is called I get a pdb prompt. (
http://docs.python.org/library/pdb.html ) This enables FAR easier
debugging. (You can do the same thing by inserting pdb.set_trace() at
any point in the code, but this way yt will handle the imports for
you.)
-Matt
More information about the yt-dev
mailing list