On Thu, May 31, 2012 at 10:04 AM, David, Al <al.da...@lsi.com> wrote: > We’re developing a C#, WPF, .NET application. And the purpose of this > application is to communicate with and control custom hardware (circuit > boards) as well as instrumentation (oscilloscopes, power supplies, etc). > > > > This application contains several panels/windows/screens. And as part of > this application, I need to implement another panel/window/screen for a > scripting environment. Ideally through this additional scripting > panel/window/screen, the user will be able to write, run, as well as debug > IronPython scripts. And when I say debug, I am referring to having the > ability to set breakpoints, view and modify variables, see the stack, etc, > etc. > > > > We’ve tried embedding SharpDevelop into our application but found this is > not possible because SharpDevelop requires being the “main window”. And in > my scenario, the “main window” is our application. > > > > Is there any way at all to accomplish what I’ve stated above, and without a > major coding effort? If so, would you be able to refer us to any coding > examples that may give us a jump start?
DevHawk (aka Harry Pierson) has an in-depth blog series on the topic starting here: http://devhawk.net/2009/10/07/hybrid-app-debugging-tracebackdelegate-and-settrace/ But we found that more complicated than what we needed. We have a very simple break, trace, stepper built into Calico [1] based on the standard Python API, but written in C#. See: http://svn.cs.brynmawr.edu/viewvc/Calico/trunk/Source/Calico/MainWindow.cs?view=markup and items related to: * ProgramSpeed.Value * CurrentDocument.HasBreakpointSet and http://svn.cs.brynmawr.edu/viewvc/Calico/trunk/languages/Python/CalicoPython.cs?view=markup and items related to: * trace * SetTraceOn(this) Hope that helps, -Doug [1] - http://calicoproject.org/Calico_Download > > > Thanks, > > Al > > > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users@python.org > http://mail.python.org/mailman/listinfo/ironpython-users > _______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users