<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">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 link="blue" vlink="purple" 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'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 class="Wj3C7c">

<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">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>