[IronPython] Disabling optimized methods

Daniel Jennings danielj at arena.net
Tue Feb 1 12:51:12 PST 2011


Alright, we're using DebugMode = true already (when the application starts with the debugger attached) so we must be seeing something else that is causing us to get the 'function has been optimized' message.

Thanks


From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dino Viehland
Sent: Tuesday, February 01, 2011 12:50 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Disabling optimized methods

You can use -X:Debug now to specifiy this at the command line.  If you want to do it while you're hosting you can set the DebugMode option to true on the ScriptRuntimeSetup object used to create the ScriptRuntime.  You'll need to make sure the ScriptSource's you create have filenames though.

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Daniel Jennings
Sent: Tuesday, February 01, 2011 11:55 AM
To: Discussion of IronPython
Subject: [IronPython] Disabling optimized methods

I was reading an old post by Dino here: http://www.mail-archive.com/users@lists.ironpython.com/msg04829.html that mentions that using -X:StaticMethods will force methods into types so that you can get the typical CLR-style debugging. I was wondering two things: 1. Is this still relavant to 2.7A1? 2. How do you specify such a flag when you're embedding IronPython in your application (building your own engine.)

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20110201/564360bc/attachment-0001.htm>


More information about the Users mailing list