[IronPython] DebugMode
Dino Viehland
dinov at exchange.microsoft.com
Mon Jul 7 18:34:52 CEST 2008
Yep, it's all about propagating the exit code. For example in IronPython we support getting the error code from a SystemExit exception. If there was a C Script it might support getting the exit code returned from int main().
-----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 10:15 AM
To: Discussion of IronPython
Subject: Re: [IronPython] DebugMode
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/
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Ironpython-users
mailing list