def handle_args(addr, name, kind, extra=(), nodebug=False, **kwargs): if kind == 'pid': attach_main(addr, name, *extra, **kwargs) elif nodebug: run_main(addr, name, kind, *extra, **kwargs) else: debug_main(addr, name, kind, *extra, **kwargs)
def main(addr, name, kind, extra=(), nodebug=False, **kwargs): if nodebug: run_main(addr, name, kind, *extra, **kwargs) else: debug_main(addr, name, kind, *extra, **kwargs)