[IronPython] How to break in the debugger in IP when script lauched from a hosting C# process

Jeff Hardy jdhardy at gmail.com
Thu Dec 16 15:40:31 CET 2010

On Thu, Dec 16, 2010 at 7:18 AM, Medcoff, Charles
<charles.medcoff at rcmt.com> wrote:
> I have a SharePoint app (Commerce Server to be exact) that is launching an IronPython script.  What is the best way to be able to step into or break into the debugger within the IronPython script?

Hi Charles,
Simplest version:
    import System.Diagnostics; System.Diagnostics.Debugger.Break()

See [1] for more details.

Maybe I should add a clr.Break() or something like that to make it easier.

- Jeff

[1] http://jdhardy.blogspot.com/2010/01/debugging-techniques-for-ironpython.html

More information about the Ironpython-users mailing list