Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经为 weblogic server 12.1.1 创建了一个脚本来在联机模式下执行操作。
我显然把事情搞砸了,我想要堆栈跟踪,这样我就可以分析出了什么问题。
我目前正在做这样的事情:
try: connect("user","pass","t3://localhost:7001") messThingsUp() except: dumpStack() rollback()
我得到的不是堆栈跟踪:“没有可用的堆栈跟踪”。
请帮忙
Thx,你们统治!
我有同样的问题,我最终使用了这段代码:
except Exception, inst: print('some diagnostic message here') print inst print sys.exc_info()[0]