schrodinger.ui.qt.appframework2.debug module¶
- schrodinger.ui.qt.appframework2.debug.maestro = <schrodinger.infra.unusable_module_importer.DummyMaestroModule object>¶
Use these decorators to automatically follow function/method calls.
debug_func tracks entry and exit every time the function is called
debug_func_args does the same and also reports argument values passed in and return value
Example:
from schrodinger.ui.qt.appframework2 import debug
@debug.debug_func_args def foo(bar):
print bar return bar + 1
debug.start_stdout_debug() foo(4)
Output:
16:19:18.132000 Functions Enter: foo(4) 16:19:18.132000 Print 4 16:19:18.132000 Functions Exit: foo. Returned: 5
- schrodinger.ui.qt.appframework2.debug.start_stdout_debug()¶
- schrodinger.ui.qt.appframework2.debug.start_file_debug()¶
- schrodinger.ui.qt.appframework2.debug.start_gui_debug(source_obj, globals=None, locals=None)¶
- schrodinger.ui.qt.appframework2.debug.stop_debug()¶
- schrodinger.ui.qt.appframework2.debug.start_debugpy_server(wait_for_connection: bool = False)¶
Use debugpy to start a debug server at
DEBUGPY_SERVER_HOST
andDEBUGPY_SERVER_PORT
.- Parameters
wait_for_connection – Whether to wait for a debugger to attach.