[IronPython] Disabling optimized methods
dinov at exchange.microsoft.com
Mon Nov 19 09:31:12 PST 2007
This isn't actually optimization but rather dynamic methods. You can use the -X:StaticMethods which will force all methods into types. But the consequence of this is if methods are getting dynamically defined (e.g. exex "def foo(): pass") then we'll leak memory because the methods can never be freed. But it will make the typical CLR-style debugging possible.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Jeff Hardy
Sent: Saturday, November 17, 2007 3:05 PM
To: Discussion of IronPython
Subject: [IronPython] Disabling optimized methods
Is there a way to disable method optimizations? I tried setting
ScriptDomainManager.Options.DebugCodeGeneration = true, but the
debugger still shows "Cannot evaluate expression because the code of
the current method is optimized." for a large number of methods. I set
the option before creating the engine, but maybe that's not enough?
Users mailing list
Users at lists.ironpython.com
More information about the Users