gws.core.debug

Debuggging tools

Source code: gws.core.debug

Module Contents

gws.core.debug.inspect(arg, max_depth=1, all_props=False)

Inspect the argument upto the given depth

gws.core.debug.p(*args, lines=False, stack=False, d=3, all=False)

Log an inspection of the arguments

gws.core.debug.time_start(label=None)
gws.core.debug.time_end()
gws.core.debug.pycharm_debugger_check(path_to_pycharm_debug_egg, host, port, suspend=False)

Check for pycharm debugger listeniing.

Attempt to open the debugger socket first and return that socket when pydevd asks for it. If there is no socket, then IDEA is not listening, return quickly.