def jar():
    parser = ArgumentParser(
        description='Connect a Bugjar GUI session to a headless debugger.',
    )

    parser.add_argument(
        "-H", "--host",
        metavar='HOSTNAME',
        help="Hostname/IP address where the headless debugger is running (default=localhost)",
        action="store",
        default="localhost",
        dest="hostname")
    parser.add_argument(
        "-p", "--port",
        metavar='PORT',
        help="Port number where where the headless debugger is running (default=3742)",
        action="store",
        type=int,
        default=3742,
        dest="port"
    )

    options = parser.parse_args()

    # Create a connection to the remote debugger instance
    debugger = Debugger(options.hostname, options.port, proc=None)

    # Run the debugger
    jar_run(debugger)
Connect a Bugjar GUI to a remote headless session.
dataset/ETHPy150Open pybee/bugjar/bugjar/main.py/jar