问题描述:

How can I set -X:Frames or -X:FullFrames by default for IronPython? I cannot type it in every time to make certain scripts work.

I cannot find any settings in the IronPython configuration files.

This is the source I found on GitHub, though I'm not sure the relevance here.

case "-X:Frames":

LanguageSetup.Options["Frames"] = ScriptingRuntimeHelpers.True;

break;

case "-X:FullFrames":

LanguageSetup.Options["Frames"] = LanguageSetup.Options["FullFrames"] = ScriptingRuntimeHelpers.True;

break;

网友答案:

Unfortunately there's no way to do that right now. One possible option would be a IRONPYTHONOPTS environment variable, but that would have to wait for 2.7.6. IronPython 3 will make -X:FullFrames the default and provide -X:NoFrames instead.

相关阅读:
Top