Can VS's IronPython Interactive window work with variables in .py file invoked from C# via CreateScriptSourceFromFile call?
问题 There is a scenario where a C# process loads up and executes a .py file (code below) that is supported for debugging by PTVS in VS. private void button_Click(object sender, RoutedEventArgs e) { var engine = IronPython.Hosting.Python.CreateEngine(new Dictionary<string, object> { { "Debug", ScriptingRuntimeHelpers.True } }); var source = engine.CreateScriptSourceFromFile("..\\..\\script.py"); dynamic result = source.Execute(); } This is described in Is there any way to debug Python code