<div dir="ltr"><div>This change was made after the release of Beta 3. You can download a more recent version of the source from</div>
<div><a href="http://www.codeplex.com/IronPython/SourceControl/ListDownloadableCommits.aspx">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 class="gmail_quote">On Mon, Jul 21, 2008 at 10:21 AM, Joshua Peterson <<a href="mailto:petersonjm1@gmail.com">petersonjm1@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr">Thanks for the information. It seems that the version of Microsoft.Scripting.ScriptRuntimeSetup which I am using does not have a DebugMode flag. The Microsoft.Scripting.dll assembly that I am referencing has a run time version of v2.0.50727. 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 <<a href="mailto:dinov@exchange.microsoft.com" target="_blank">dinov@exchange.microsoft.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">The ScriptRuntimeSetup class has a DebugMode flag that can be set. 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)"> </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)"> </span></p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: rgb(181,196,223) 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<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> </p>
<div>
<p>I'm working with a C# application that hosts IronPython 2.0 Beta 3. 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. This allows me to step through the python code in test.py in Visual Studio. Is there something similar to the ClrDebuggingEnabled in IronPython 2.0? 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> class Program<br>
{<br> static void Main(string[] args)<br> {<br> EngineOptions eo = new EngineOptions();<br> eo.ClrDebuggingEnabled = true; <br> PythonEngine pe = new PythonEngine(eo);<br>
pe.ExecuteFile(@"C:\test.py");<br> }<br> }<br>}<br><br>test.py:<br><br>import System<br>import System.Diagnostics<br>print "Test 1"<br>System.Diagnostics.Debugger.Break() <br>print "Test 2"<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">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>