[IronPython] DebugMode

Michael Foord fuzzyman at voidspace.org.uk
Sat Jul 5 19:14:32 CEST 2008


Dino Viehland wrote:
> It enables generation of PDBs and causes the code to be compiled in debug mode (w/o optimizations) so that it can be reasonably debugged.  W/o it you won't be able to debug code from a .NET debugger.
>   

Cool, thanks Dino.

Also what is the difference between ScriptSource.Execute() and 
ScriptSource.ExecuteProgram() ?

As far as I can tell, ExecuteProgram returns an integer for propagating 
the exit code of a program. Is this the main reason to use it?

Michael

> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
> Sent: Saturday, July 05, 2008 8:04 AM
> To: Discussion of IronPython
> Subject: [IronPython] DebugMode
>
> Hello all,
>
> What practical effect does setting 'DebugMode' on a ScriptRuntime have?
>
> ScriptRuntime runtime = ScriptRuntime.Create();
> runtime.GlobalOptions.DebugMode = true;
> ScriptEngine engine = runtime.GetEngine("py");
>
> Michael Foord
>
> --
> http://www.ironpythoninaction.com/
> http://www.voidspace.org.uk/
> http://www.trypython.org/
> http://www.ironpython.info/
> http://www.theotherdelia.co.uk/
> http://www.resolverhacks.net/
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>   


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.theotherdelia.co.uk/
http://www.resolverhacks.net/




More information about the Ironpython-users mailing list