[IronPython] Debugging embedded IP?

Dino Viehland dinov at exchange.microsoft.com
Wed Apr 11 17:58:29 CEST 2007

The answer to this all depends upon how the scripts are getting executed.  If you have a bunch of .py files which are getting loaded as modules from disk (e.g. your typical import scenario) and you haven't used the -X:GenerateAsSnippets mode then the answer is yes.

You should be able to attach to the process doing the embedding, open the .py file in VS and set breakpoints and step through it.  If you build your own copy of IronPython.dll then you'll also be able to step from the script code to the IronPython code.

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Adam Pletcher
Sent: Wednesday, April 11, 2007 8:21 AM
To: Discussion of IronPython
Subject: [IronPython] Debugging embedded IP?

I'm giving IronPython a test run, and definitely like it so far.  I have
the VS 2005 debugger working with IP scripts, which is pretty slick.

One thing I'm trying to determine is if it's possible to use a debugger
(VS, CLR or otherwise) to debug scripts run by an embedded IronPython
interpreter.  The turorials cover how to embed, then how debug, but not

Any pointers/links appreciated.

Adam Pletcher
Senior Technical Artist
Volition / THQ
users mailing list
users at lists.ironpython.com

More information about the Ironpython-users mailing list