<div dir="ltr">Thanks.&nbsp; The ScriptRuntime.GlobalOptions.DebugMode flag works for the Beta 3 version.&nbsp; I&#39;ll look for the other method in the most recent version.&nbsp; I appreciate the help!<br><br>Josh<br><br><div class="gmail_quote">
On Mon, Jul 21, 2008 at 1:37 PM, Curt Hagenlocher &lt;<a href="mailto:curt@hagenlocher.org">curt@hagenlocher.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><div>This change was made after the release of Beta 3.&nbsp; You can download a&nbsp;more recent version of the source from</div>
<div><a href="http://www.codeplex.com/IronPython/SourceControl/ListDownloadableCommits.aspx" target="_blank">http://www.codeplex.com/IronPython/SourceControl/ListDownloadableCommits.aspx</a></div>
<div><br>I think in Beta 3 you could access the debug flag through ScriptRuntime.GlobalOptions.DebugMode, but this has already been removed in the latest sources.<br></div><div><div></div><div class="Wj3C7c">
<div class="gmail_quote">On Mon, Jul 21, 2008 at 10:21 AM, Joshua Peterson &lt;<a href="mailto:petersonjm1@gmail.com" target="_blank">petersonjm1@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div dir="ltr">Thanks for the information.&nbsp; It seems that the version of Microsoft.Scripting.ScriptRuntimeSetup which I am using does not have a DebugMode flag.&nbsp; The Microsoft.Scripting.dll assembly that I am referencing has a run time version of v2.0.50727.&nbsp; Is it possible that I need a newer version of the Microsoft.Scripting.dll assembly.<br>

<br>Josh<br><br>
<div class="gmail_quote">On Mon, Jul 21, 2008 at 12:12 PM, Dino Viehland &lt;<a href="mailto:dinov@exchange.microsoft.com" target="_blank">dinov@exchange.microsoft.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div vlink="purple" link="blue" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">The ScriptRuntimeSetup class has a DebugMode flag that can be set.&nbsp; When you do ScriptRuntime.Create you can pass it the ScriptRuntimeSetup object that you created.</span></p>


<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">FYI configuration is going through some reviews and changes so this will soon be slightly different but you&#39;ll do the same basic stuff – create some setup object and then pass it off to the ScriptRuntime.</span></p>


<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <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>Joshua Peterson<br>

<b>Sent:</b> Monday, July 21, 2008 6:58 AM<br><b>To:</b> <a href="mailto:users@lists.ironpython.com" target="_blank">users@lists.ironpython.com</a><br><b>Subject:</b> [IronPython] IronPython.Hosting.EngineOptions.ClrDebuggingEnabled in IronPython 2.0 Beta 3</span></p>

</div>
<div>
<div></div>
<div>
<p>&nbsp;</p>
<div>
<p>I&#39;m working with a C# application that hosts IronPython 2.0 Beta 3.&nbsp; I would like to be able to use the IronPython integration sample that ships with the Visual Studio 2005 SDK to debug the python code running in my C# application.<br>

<br>If I host IronPython 1.1 in a C# application, I can set the IronPython.Hosting.EngineOptions.ClrDebuggingEnabled flag to true as in the example below.&nbsp; This allows me to step through the python code in test.py in Visual Studio.&nbsp; Is there something similar to the ClrDebuggingEnabled in IronPython 2.0?&nbsp; Thanks.<br>

<br>Josh<br><br>Program.cs:<br><br>using System;<br>using System.Collections.Generic;<br>using System.Text;<br>using IronPython;<br>using IronPython.Hosting;<br><br>namespace TestDebugEmbeddedIronPyton<br>{<br>&nbsp;&nbsp;&nbsp; class Program<br>

&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static void Main(string[] args)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EngineOptions eo = new EngineOptions();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eo.ClrDebuggingEnabled = true; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PythonEngine pe = new PythonEngine(eo);<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pe.ExecuteFile(@&quot;C:\test.py&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>test.py:<br><br>import System<br>import System.Diagnostics<br>print &quot;Test 1&quot;<br>System.Diagnostics.Debugger.Break() <br>print &quot;Test 2&quot;<br clear="all">

<br>-- <br>Rejoice always. Pray without ceasing. In all circumstances give thanks, for this is the will of God for you in Christ Jesus. -- 1 Thes. 5:16-18 NAB<br>--<br>I am the living bread that came down from heaven; whoever eats this bread will live forever; and the bread that I will give is my flesh for the life of the world. -- John 6:51 NAB </p>

</div></div></div></div></div><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.ironpython.com" target="_blank">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><br clear="all"><br>-- <br>Rejoice always. Pray without ceasing. In all circumstances give thanks, for this is the will of God for you in Christ Jesus. -- 1 Thes. 5:16-18 NAB<br><font color="#888888">--<br>

I am the living bread that came down from heaven; whoever eats this bread will live forever; and the bread that I will give is my flesh for the life of the world. -- John 6:51 NAB </font></div><br>_______________________________________________<br>

Users mailing list<br><a href="mailto:Users@lists.ironpython.com" target="_blank">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></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><br clear="all"><br>-- <br>Rejoice always. Pray without ceasing. In all circumstances give thanks, for this is the will of God for you in Christ Jesus. -- 1 Thes. 5:16-18 NAB<br>--<br>I am the living bread that came down from heaven; whoever eats this bread will live forever; and the bread that I will give is my flesh for the life of the world. -- John 6:51 NAB
</div>