a = 1
b = 0
c = a/b
Prior to the workround the traceback would have been:
Traceback (most recent call last):
File foo, line unknown, in Initialize
ZeroDivisionError: Division by zero
But if I start IronPython using:
mono --debug ipy.exe -X:SaveAssemblies foo.py
you get a more helpful traceback
Traceback (most recent call last):
File /u1/ip/IPCE/IPCE-svn/Lib/site.py, line 33, in Initialize
File /u1/ip/IPCE/IPCE-svn/Lib/fepy/__init__.py, line 7, in install
File /u1/ip/IPCE/IPCE-svn/Lib/fepy/__init__.py, line 11, in install_option
File /u1/ip/IPCE/IPCE-svn/Lib/fepy/ast.py, line 17, in Initialize
SystemError: Object reference not set to an instance of an object
Traceback (most recent call last):
File /tmp/foo.py, line 3, in Initialize
ZeroDivisionError: Division by zero
Thanks again Sangyheon.
No comments:
Post a Comment