Update inspector while running script.
@@ -196,6 +196,13 @@ def run_script(path, replMode=False):
def loop():
while Python.shared.isScriptRunning:
+ if not ConsoleViewController.isMainLoopRunning:
+ try:
+ vars = get_variables_hierarchy(__script__)
+ if vars != ConsoleViewController.variables:
+ ConsoleViewController.variables = vars
+ except:
+ pass
time.sleep(1)
ignoredThreads.append(thread)
if thread.isAlive():
