Il giorno 01/ott/2011, alle ore 16:59, Martin Zibricky ha scritto: > Chris Smith píše v So 01. 10. 2011 v 00:59 -0700: >> I can of course use "2> log.txt" to >> get it, but I could have used py2exe's handling of this in the field >> and asked super competent users (or sub-par testers) to send me a log >> file. pyinstaller's debug mode is not meant for this. Sooo how can I >> get some similar functionality out of pyinstaller? > > I think there is nothing similar in pyinstaller. But maybe others could > share any experiences with this. > > Maybe the pyinstaller's debug mode could be somehow improved. > > How is this implemented in py2exe?
The only way to implement such a feature is to install an exception handler in Python. I think it's a feature that could make sense for PyInstaller: when console is disabled, an exception handler should be installed that logs exceptions to log files and/or display a message box using the OS native GUI support, possibly through a different process not to create weird interactions with any running GUI in the user's application. Obviously this would be a debug feature that can be disabled if not needed. -- Giovanni Bajo :: [email protected] Develer S.r.l. :: http://www.develer.com My Blog: http://giovanni.bajo.it
smime.p7s
Description: S/MIME cryptographic signature
