dynamic method which can be debugged

F

Florian Reiser

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,338
Messages
2,571,770
Members
48,561
Latest member
WileyBrant

Latest Threads

Top