Esempio n. 1
0
def debug():
    """
    Create a debug runner in a new process. This is what the Mu debugger will
    drive. Uses the filename and associated args found in sys.argv.
    """
    filename = os.path.normcase(os.path.abspath(sys.argv[1]))
    args = sys.argv[2:]
    run_debugger('localhost', DEBUGGER_PORT, filename, args)
Esempio n. 2
0
File: app.py Progetto: lordmauve/mu
def debug():
    """
    Create a debug runner in a new process. This is what the Mu debugger will
    drive. Uses the filename and associated args found in sys.argv.
    """
    if len(sys.argv) > 1:
        filename = os.path.normcase(os.path.abspath(sys.argv[1]))
        args = sys.argv[2:]
        run_debugger('localhost', DEBUGGER_PORT, filename, args)
    else:
        print(_("Debug runner requires a filename for a Python script "
                "to debug."))
Esempio n. 3
0
def debug():
    """
    Create a debug runner in a new process.

    This is what the Mu debugger will drive. Uses the filename and associated
    args found in sys.argv.
    """
    if len(sys.argv) > 1:
        filename = os.path.normcase(os.path.abspath(sys.argv[1]))
        args = sys.argv[2:]
        run_debugger('localhost', DEBUGGER_PORT, filename, args)
    else:
        print(_("Debugger requires a Python script filename to run."))
Esempio n. 4
0
def debug():
    """
    Create a debug runner in a new process.

    This is what the Mu debugger will drive. Uses the filename and associated
    args found in sys.argv.
    """
    if len(sys.argv) > 1:
        filename = os.path.normcase(os.path.abspath(sys.argv[1]))
        args = sys.argv[2:]
        run_debugger("localhost", DEBUGGER_PORT, filename, args)
    else:
        # See https://github.com/mu-editor/mu/issues/743
        print("Debugger requires a Python script filename to run.")