[IronPython] Debugging IronPython script using "IronPython tools for Visual Studio(CP2)

Dino Viehland dinov at microsoft.com
Sun Jun 13 21:33:06 CEST 2010


I'm assuming the problem here is that this is exiting w/ a non-zero exit code indicating something went wrong.  But what went wrong really depends on what the last exception is - there appears to be some failure to import something.  The other exceptions are expected as the standard library throws exceptions on startup.  Can you enable breaking on the import exception (or all exceptions and continue after these) and see what the last exception is?

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of yngipy hernan
Sent: Saturday, June 12, 2010 11:41 PM
To: users at lists.ironpython.com
Subject: [IronPython] Debugging IronPython script using "IronPython tools for Visual Studio(CP2)

Hi all,

I am trying to debug my scripts using VS2010 Pro, for non-class based code it is working as expected. But got hiccups inside a class, this is what I am getting:

'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'
'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\yoyong\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Microsoft\IronPython Tools for Visual Studio\0.2\ipy.exe'
'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\yoyong\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Microsoft\IronPython Tools for Visual Studio\0.2\Microsoft.Dynamic.dll'
'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\yoyong\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Microsoft\IronPython Tools for Visual Studio\0.2\Microsoft.Scripting.dll'
'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'
'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'
'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'
'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\yoyong\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Microsoft\IronPython Tools for Visual Studio\0.2\IronPython.dll'
'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'
'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll'
'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\yoyong\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Microsoft\IronPython Tools for Visual Studio\0.2\IronPython.Modules.dll'
'ipy.exe' (Managed (v4.0.30319)): Loaded 'Snippets.debug.scripting'
'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\ISymWrapper\v4.0_4.0.0.0__b03f5f7f11d50a3a\ISymWrapper.dll'
'ipy.exe' (Managed (v4.0.30319)): Loaded 'Anonymously Hosted DynamicMethods Assembly'
A first chance exception of type 'Microsoft.Scripting.ArgumentTypeException' occurred in Snippets.debug.scripting
'ipy.exe' (Managed (v4.0.30319)): Loaded 'Snippets.scripting'
A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll
A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in IronPython.dll
A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in Microsoft.Dynamic.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in Microsoft.Dynamic.dll
A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in IronPython.dll
A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in Microsoft.Dynamic.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in Microsoft.Dynamic.dll
A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in IronPython.dll
A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in Microsoft.Dynamic.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in Microsoft.Dynamic.dll
A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in IronPython.dll
A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll
A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll
A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll
A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll
A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll
A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll
A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in IronPython.Modules.dll
A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in IronPython.Modules.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in Microsoft.Dynamic.dll
A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in IronPython.Modules.dll
A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in IronPython.Modules.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in Microsoft.Dynamic.dll
A first chance exception of type 'IronPython.Runtime.Exceptions.ImportException' occurred in IronPython.dll
A first chance exception of type 'IronPython.Runtime.Exceptions.ImportException' occurred in IronPython.dll
The program '[3216] ipy.exe: Managed (v4.0.30319)' has exited with code 1 (0x1).

Regards,
Yngipy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100613/2f14ab24/attachment.html>


More information about the Ironpython-users mailing list