Chuck 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?

You should enable debug mode for the script runtime to make the code 
debuggable.  There's a DebugMode property on ScriptRuntimeSetup that 
you can set that will enable that.  Then if the code you're compiling is all
on disk w/ filenames we should emit debugging information for it (if you're
creating script sources from strings you'll need to write them out to disk
and create them from files).

>From there you should be able to attach VS and step, set break points, etc...
You don't want to do this all the time though because debuggable code
is not collectible code so you could end up leaking memory.




_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to