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 <[EMAIL PROTECTED]>:
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
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to