为什么在windows下的python 2.7 32位中的python调试器会缩写错误消息?

2024-10-06 10:27:44 发布

您现在位置:Python中文网/ 问答频道 /正文

有时,调试器会简化运行时错误消息,如下所示

(Pdb) n
> p:\hhu\updater4.py(136)make_and_execute_insert()
-> result = dbops.do( db.cursor, query.encode( 'utf-8' ) )
(Pdb) n
UnicodeDecodeError: UnicodeD...ge(128)')
> p:\hhu\updater4.py(136)make_and_execute_insert()
-> result = dbops.do( db.cursor, query.encode( 'utf-8' ) )
(Pdb)

当它这样做时,我无法读取错误消息。有人能告诉我怎么阻止这种事发生吗?你知道吗


Tags: andpy消息executedbmake错误result