<span class="Apple-style-span" style="font-size: 15px; color: rgb(31, 73, 125); "><b>RE: Can you enable breaking on the import exception (or all exceptions and continue after these) and see what the last exception is?</b></span><div>
<font class="Apple-style-span" color="#1F497D" size="4"><span class="Apple-style-span" style="font-size: 15px;">Sorry, I am not familiar how to do this. I search for some tutorial, but if you have some wiki out there I can use, I can probably give it a try.</span></font></div>
<div><font class="Apple-style-span" color="#1F497D" size="4"><span class="Apple-style-span" style="font-size: 15px;"><br></span></font></div><div><font class="Apple-style-span" color="#1F497D" size="4"><span class="Apple-style-span" style="font-size: 15px;">Regards,</span></font></div>
<div><font class="Apple-style-span" color="#1F497D" size="4"><span class="Apple-style-span" style="font-size: 15px;">Yngipy</span></font></div><div><br><div class="gmail_quote">On Mon, Jun 14, 2010 at 3:33 AM, Dino Viehland <span dir="ltr"><<a href="mailto:dinov@microsoft.com">dinov@microsoft.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">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?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>]
<b>On Behalf Of </b>yngipy hernan<br>
<b>Sent:</b> Saturday, June 12, 2010 11:41 PM<br>
<b>To:</b> <a href="mailto:users@lists.ironpython.com" target="_blank">users@lists.ironpython.com</a><br>
<b>Subject:</b> [IronPython] Debugging IronPython script using "IronPython tools for Visual Studio(CP2)</span></p>
</div>
</div><div><div></div><div class="h5">
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hi all,</p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">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:</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<div>
<p class="MsoNormal">'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'</p>
</div>
<div>
<p class="MsoNormal">'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'</p>
</div>
<div>
<p class="MsoNormal">'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'</p>
</div>
<div>
<p class="MsoNormal">'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'</p>
</div>
<div>
<p class="MsoNormal">'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'</p>
</div>
<div>
<p class="MsoNormal">'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'</p>
</div>
<div>
<p class="MsoNormal">'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'</p>
</div>
<div>
<p class="MsoNormal">'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'</p>
</div>
<div>
<p class="MsoNormal">'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'</p>
</div>
<div>
<p class="MsoNormal">'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'</p>
</div>
<div>
<p class="MsoNormal">'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'</p>
</div>
<div>
<p class="MsoNormal">'ipy.exe' (Managed (v4.0.30319)): Loaded 'Snippets.debug.scripting'</p>
</div>
<div>
<p class="MsoNormal">'ipy.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\ISymWrapper\v4.0_4.0.0.0__b03f5f7f11d50a3a\ISymWrapper.dll'</p>
</div>
<div>
<p class="MsoNormal">'ipy.exe' (Managed (v4.0.30319)): Loaded 'Anonymously Hosted DynamicMethods Assembly'</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'Microsoft.Scripting.ArgumentTypeException' occurred in Snippets.debug.scripting</p>
</div>
<div>
<p class="MsoNormal">'ipy.exe' (Managed (v4.0.30319)): Loaded 'Snippets.scripting'</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in IronPython.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in Microsoft.Dynamic.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in Microsoft.Dynamic.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in IronPython.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in Microsoft.Dynamic.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in Microsoft.Dynamic.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in IronPython.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in Microsoft.Dynamic.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in Microsoft.Dynamic.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'IronPython.Runtime.UnboundNameException' occurred in IronPython.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.MissingMemberException' occurred in IronPython.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in IronPython.Modules.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in IronPython.Modules.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in Microsoft.Dynamic.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in IronPython.Modules.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in IronPython.Modules.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in Microsoft.Dynamic.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'IronPython.Runtime.Exceptions.ImportException' occurred in IronPython.dll</p>
</div>
<div>
<p class="MsoNormal">A first chance exception of type 'IronPython.Runtime.Exceptions.ImportException' occurred in IronPython.dll</p>
</div>
<div>
<p class="MsoNormal">The program '[3216] ipy.exe: Managed (v4.0.30319)' has exited with code 1 (0x1).</p>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Regards,</p>
</div>
<div>
<p class="MsoNormal">Yngipy</p>
</div>
</div></div></div>
</div>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br></div>