(choice)
Enable/disable printing helpful information for debugging your program. If testing the .app generated using
    py2app, to be able to see these messages you must not `open {your app name}.app` but instead run the executable,

    While within the directory containing the .app,

        ./{your app name}.app/Contents/MacOS/{your app name}

    And, by default, your .app will be in `dist` folder after running `python setup.py py2app`. So of course that would
    then be,

        ./dist/{your app name}.app/Contents/MacOS/{your app name}
Enable/disable printing helpful information for debugging your program. If testing the .app generated using
    py2app, to be able to see these messages you must not `open {your app name}.app` but instead run the executable,
Enable / disable printing helpful information for debugging your program . If testing the . app generated using py2app to be able to see these messages you must not open { your app name } . app but instead run the executable
def debug_mode(choice):
    """
    Enable/disable printing helpful information for debugging your program. If testing the .app generated using
    py2app, to be able to see these messages you must not `open {your app name}.app` but instead run the executable,

    While within the directory containing the .app,

        ./{your app name}.app/Contents/MacOS/{your app name}

    And, by default, your .app will be in `dist` folder after running `python setup.py py2app`. So of course that would
    then be,

        ./dist/{your app name}.app/Contents/MacOS/{your app name}

    """
    global _log
    if choice:
        def _log(*args):
            NSLog(' '.join(map(str, args)))
    else:
        def _log(*_):
            pass
def debug_mode ( choice ) : global _log if choice : def _log ( * args ) : NSLog ( ' ' . join ( map ( str , args ) ) ) else : def _log ( * _ ) : pass