If something is wrong with your code, and error message might show up automatically in the in-game console or in py_log.txt. It will always show up in log.txt. The best way to find an error in log.txt is by search for your application name, in this case appName, and reading the surrounding output.