[IronPython] How to do debugging for embedded usage

Angelo Xu alcarx at gmail.com
Wed Nov 9 02:04:02 CET 2005

Because i need to debug the embedded scripts, I changed from ExecuteFile(..)
to RunFile(..), but the application will report "Common Language Runtime
Detected an Invalid Program". I spent some time finding the reason. If i add
statements such as "return False" "return 1" into the script, using
RunFile(...) method will report the error, while executeFile works fine. The
effect of using "IronPythonConsole scriptFilePath" just like using
RunFile(...) method. I don't know why.

2005/11/4, Martin Maly <Martin.Maly at microsoft.com>:
> Because it it generated as a code snippet into the snippet assembly which
> doesn't have association with the source file and therefore the debugger
> cannot make the connection between the code and the source file.
>  I'm going to look into whether this could get changed/fixed.
>  Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20051109/27f7ce19/attachment.html>

More information about the Ironpython-users mailing list