![](/img/trans.png)
[英]How to compile multiple python files into single .exe file using pyinstaller
[英]How to debug python .exe file (pyinstaller)
我對使用pyinstaller制作Windows程序(.exe文件)感到非常滿意,但是我發現調試階段非常耗時。
我想pyinstaller編譯python代碼,因此如果崩潰將顯示錯誤。
到目前為止,我已經try
, except
try:
# My code goes here
except Exception as e:
print "ERROR:"
print type(e) # the exception instance
print e.args
但這並沒有給我完整的崩潰日志。
嘗試使用traceback
模塊,尤其是print_...
函數。 另外,嘗試捕獲BaseExceptions
,所有異常都從該異常派生,而有些不是從Exception
派生的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.