Hi Keith

Thanks for the info. I am looking for something simple. I really haven't dealt 
with sys.trace before I will do some digging into this looking at samples.

Danny

Sent from my iPad

> On Mar 14, 2014, at 7:50 PM, "Keith Rome" <r...@wintellect.com> wrote:
> 
> Depending upon your goals you may be able to get by with implementing a 
> function and installing it with sys.settrace() from your hosting application. 
> I’ve managed to implement a full in-application dev IDE built around that 
> capability.
> 
> The function you install as a trace handler gets invoked for each line of 
> code being executed as well as each time a new code block/function in the 
> python script is entered/exited. You can use that like a breakpoint - script 
> execution is suspended until the trace function returns. You have full access 
> to the current script scope and can get information about the source code 
> file and line number too.
> 
> It requires some effort to get advanced debugging features, but it is 
> certainly possible.
> 
> 
> Keith Rome
> Principal Architect @ Wintellect (www.wintellect.com)
> 770.617.4016 | kr...@wintellect.com
> 
> <529A2558-817C-467F-8E7E-0789B90D675C[48].png> 
> Register today for access to our high-quality on-demand training resources!
> 
> From: Daniel Fernandez <fernandez_d...@hotmail.com>
> Date: Friday, March 14, 2014 at 9:13 PM
> To: "ironpython-users@python.org" <ironpython-users@python.org>
> Subject: [Ironpython-users] Launch ipy.exe from Host
> 
> Hi All,
>  
> I have IronPython embedded in my application to run predefined scripts. I 
> experiment and debug a lot in the interactive environment outside of my 
> application. I was wondering if I could launch ipy from my application and 
> pass it my ScriptScope for debug/experimenting purposes? I know I can launch 
> ipy from my host but I haven't figured how to pass it my scriptscope so I can 
> play with the current objects in the scope. 
>  
> Thanks
>  
> Danny

<<inline: 529A2558-817C-467F-8E7E-0789B90D675C[48].png>>

_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
https://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to