Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 如何调试python.exe文件(pyinstaller)_Python 2.7_Pyinstaller - Fatal编程技术网

Python 2.7 如何调试python.exe文件(pyinstaller)

Python 2.7 如何调试python.exe文件(pyinstaller),python-2.7,pyinstaller,Python 2.7,Pyinstaller,我很高兴使用pyinstaller制作windows程序(.exe文件)。但我发现调试阶段非常耗时 我希望pyinstaller编译python代码,以便在崩溃时显示错误 到目前为止,我已经做了尝试和除了 try: # My code goes here except Exception as e: print "ERROR:" print type(e) # the exception instance print e.args 但它并没有给我完整的崩

我很高兴使用pyinstaller制作windows程序(.exe文件)。但我发现调试阶段非常耗时

我希望pyinstaller编译python代码,以便在崩溃时显示错误

到目前为止,我已经做了
尝试
除了

try:
    # My code goes here
except Exception as e:
    print "ERROR:"
    print type(e)     # the exception instance
    print e.args
但它并没有给我完整的崩溃日志。

尝试模块,尤其是
print.
函数。另外,尝试捕获
BaseExceptions
,所有异常都是从它派生的,有些异常不是从
Exception
派生的