Files
openide/python/testData/debug/test_async_eval.py
Elizaveta Shashkova a3dffc58ac Add ability to load variables in the Variables Pane asynchronously (PY-12987)
If in the frame there is at least one very long or slow variable, the frame's variable aren't shown. In order to avoid such situations we add an option to load variables asynchronously. At first debugger loads only names of the variables, and after that it sends additional commands and evaluates values of the variables in a separate threads.
2017-10-09 21:20:18 +03:00

15 lines
213 B
Python

import time
class Foo(object):
def __init__(self, name):
self.name = name
def __repr__(self):
time.sleep(1)
return self.name
f = Foo("foo")
l = [Foo("list"), Foo("list")]
a = 1