Python 2.7 如何调试python.exe文件(pyinstaller)
我很高兴使用pyinstaller制作windows程序(.exe文件)。但我发现调试阶段非常耗时 我希望pyinstaller编译python代码,以便在崩溃时显示错误 到目前为止,我已经做了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 但它并没有给我完整的崩
尝试
和除了
try:
# My code goes here
except Exception as e:
print "ERROR:"
print type(e) # the exception instance
print e.args
但它并没有给我完整的崩溃日志。尝试模块,尤其是print.
函数。另外,尝试捕获BaseExceptions
,所有异常都是从它派生的,有些异常不是从Exception
派生的