コード例 #1
0
def bp(*args):
    condition = True
    message = ""
    for arg in args:
        if type(arg) is bool:
            condition = arg
            break
    for arg in args:
        if type(arg) is str:
            message = arg
            break
    if condition:
        if message:
            print("[IDACode] {message}".format(message=message))
        api.breakpoint()
コード例 #2
0
ファイル: dbg.py プロジェクト: CrackerCat/idacode
def bp(*args):
    condition = True
    message = ""
    for arg in args:
        if type(arg) is bool:
            condition = arg
            break
    for arg in args:
        if type(arg) is str:
            message = arg
            break
    if condition:
        if message:
            print(message)
        api.breakpoint()
コード例 #3
0
def breakpoint():
    """If a client is connected to the debug adapter that is debugging
    this process, pauses execution of all threads, and simulates a
    breakpoint being hit at the line following the call.

    On Python 3.7 and above, this is the same as builtins.breakpoint().
    """

    from debugpy.server import api

    return api.breakpoint()