如何在 PyS60 中记录打印语句和错误消息?
当在 Python for S60 (PyS60) 中运行基于图形的程序时,错误消息和打印语句的输出(即 stdout)被隐藏。 如果由于错误,应用程序停止按预期工作,则其丢失并且跟踪错误非常困难,有时需要运行代码的“第二个剥离版本”。
这显然是痛苦的。
如何将这些错误记录到文件中,以便以后可以看到它们。
When running graphics based programs in Python for S60 (PyS60) the error messages and the output of the print statement (i.e. stdout) are hidden. If due to an error application stops working as expected its lost and tracking down the bug is very difficult, sometimes require running a "second stripped version" of the code.
This is obviously painful.
How do I log those errors to a file, so that I may see them later.
PyS60具体信息在这里:
http://wiki.forum.nokia.com/index.php/Python_debugging_techniques
PyS60 specific info here:
http://wiki.forum.nokia.com/index.php/Python_debugging_techniques