beremiz

Register the current watched variable in Debug Window before starting
import time,sys
def myprintfunc(arg):
print arg
sys.stdout.flush()
return arg