dynamic method which can be debugged

Florian Reiser florian.reiser at ra-bc.de
Thu Oct 30 07:37:29 EST 2003


Hello,

I have programmed a zope product generating a pdf-document on the fly with
the reportlab library.
In the product I insert a instance of my class in the object database
customizing variables containing the code for the page layout
and the page content.
At the moment I use compile and exec to use the code.
However if an error occurs it is very difficult to locate it, because I
cannot use pdb to debug my dynamic method, where the
actual processing happens.
Can I compile the code in a way, so I can debug it, too?

Greets
Florian Reiser






More information about the Python-list mailing list