[IronPython] Debugging IronPython scripts + simulate a filename when loading a string

Patrick Deschênes patrick.deschenes at gmail.com
Wed Jun 3 19:59:08 CEST 2009

I'm currently using IronPython to develop extensions to my program.  My
python scripts are compressed in a zip file along with other resources.

Everything works fine but I would be very happy if I could find a simple way
to debug my scripts.  I don't want anything complex for now.  If I could
only do something like this :

   bugged code
   print debug.stack.filename + " : " debug.stack.lineno

It would be perfect.  I looked for the *traceback* module but it doesn't
seems to work with IronPython.  Also, since I load my script from a zip
file, is there a way to
simulate a filename when loading a string.

So, if I could :

a) load a string as if it was a file
b) intercept the filename/linenum in the catch block

That would be a huge improvement.

- Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20090603/77f8ed99/attachment.html>

More information about the Ironpython-users mailing list