def communicate(command=None):
    "send command to debbuger, wait result"
    if command is not None:
        logger.info(command % "DEBUG: sending command %s")
        pipe_in.write(command)
        #pipe_in.flush()
    result = []
    while True:
        data = pipe_out.read()
        if data is None:
            break
        result.append(data)
    logger.info("DEBUG: result %s" % repr(result))
    return ''.join(result)


# New debugger implementation using qdb and a web UI
dataset/ETHPy150Open uwdata/termite-visualizations/web2py/gluon/debug.py/communicate/swapped operands of `%`