有时,调试器会简化运行时错误消息,如下所示
(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)
当它这样做时,我无法读取错误消息。有人能告诉我怎么阻止这种事发生吗?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐