That is great.. Now how do I get locals and a watch window running.&nbsp; I installed PythonStudio hoping that would do the trick.&nbsp; But alas I only get the ability to F10 through code which isnt that useful unless you can see what its doing.<br>
<br><div class="gmail_quote">On Thu, Jun 5, 2008 at 9:59 AM, 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);">Debugging needs to be globally enabled – but once it is
ExecuteFile will produce debuggable code.&nbsp; To globally enable debugging in 1.x
you do:</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);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EngineOptions eo = new EngineOptions();</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eo.ClrDebuggingEnabled = true;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PythonEngine eng = new PythonEngine(eo);</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);">To create the PythonEngine.</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>Michael Stephens<br>
<b>Sent:</b> Monday, June 02, 2008 10:01 PM<br>
<b>To:</b> <a href="mailto:users@lists.ironpython.com" target="_blank">users@lists.ironpython.com</a><br>
<b>Subject:</b> [IronPython] Iron Python debuggin using PythonEngine</span></p>

</div><div><div></div><div class="Wj3C7c">

<p>&nbsp;</p>

<p>Hello all, This is my first post so bear with me!<br>
<br>
My company is using iron python as an embedded scripting engine and we are
loving every piece of it.&nbsp; I just downloaded IronPython Studio and am
working on making our scripts available to the studio for editing so we can get
intellisense.&nbsp; As a side project I wanted to see if I could get Iron
Python to work with break points. In python studio I &quot;ran without
debugging&quot; this piece of code.&nbsp; It forced me to connect to vs2008 and
allowed me to find my program.py file and debug it. <br>
<br>
hello = &quot;Hello VSX!!!&quot;<br>
import System<br>
import System.Diagnostics<br>
print hello<br>
System.Diagnostics.Debugger.Launch()<br>
System.Diagnostics.Debugger.Break()<br>
print hello<br clear="all">
<br>
The problem lies when i execute this file from the PythonEngine.&nbsp; The code
below is in c# and when executed prompts me to attach to C# program.cs not
program.py .&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PythonEngine
eng = new PythonEngine();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
eng.CreateModule();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
eng.Import(&quot;System&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
eng.Import(&quot;System.Diagnostics&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
eng.ExecuteFile(@&quot;IronPython
Studio\ConsoleApplication3\ConsoleApplication3\Program.py&quot;);<br>
<br>
Does anyone have any ideas on how to get this to work.&nbsp; I really love the
idea of hosting ironpython in our application but we could definitely use the
ability to get breakpoints.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
<br>
<br>
-- <br>
Michael Stephens<br>
<br>
Electrical Engineering Graduate Student<br>
University of Wyoming<br>
<a href="mailto:falcon@uwyo.edu" target="_blank">falcon@uwyo.edu</a> or <a href="mailto:89iroc@gmail.com" target="_blank">89iroc@gmail.com</a> </p>

</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>Michael Stephens<br><br>Electrical Engineering Graduate Student<br>University of Wyoming<br><a href="mailto:falcon@uwyo.edu">falcon@uwyo.edu</a> or <a href="mailto:89iroc@gmail.com">89iroc@gmail.com</a>