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.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Hardy
Sent: Saturday, November 17, 2007 3:05 PM
To: Discussion of IronPython
Subject: [IronPython] Disabling optimized methods

Hi,
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?

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

Reply via email to