Todo: 集成多平台 解决因SaiNiu线程抢占资源问题 本地提交测试环境打包 和 正式打包脚本与正式环境打包bat 提交Python32环境包 改进多日志文件生成情况修改打包日志细节
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
# NOTE NOTE - This module is designed to fail!
|
||||
#
|
||||
# The ONLY purpose for this script is testing/demoing the
|
||||
# Pythonwin debugger package.
|
||||
|
||||
# It does nothing useful, and it even doesn't do that!
|
||||
|
||||
import sys
|
||||
import time
|
||||
|
||||
import pywin.debugger
|
||||
|
||||
|
||||
def a():
|
||||
a = 1
|
||||
try:
|
||||
b()
|
||||
except:
|
||||
# Break into the debugger with the exception information.
|
||||
pywin.debugger.post_mortem(sys.exc_info()[2])
|
||||
a = 1
|
||||
a = 2
|
||||
a = 3
|
||||
a = 4
|
||||
|
||||
|
||||
def b():
|
||||
b = 1
|
||||
pywin.debugger.set_trace()
|
||||
# After importing or running this module, you are likely to be
|
||||
# sitting at the next line. This is because we explicitly
|
||||
# broke into the debugger using the "set_trace() function
|
||||
# "pywin.debugger.brk()" is a shorter alias for this.
|
||||
c()
|
||||
|
||||
|
||||
def c():
|
||||
c = 1
|
||||
d()
|
||||
|
||||
|
||||
def d():
|
||||
d = 1
|
||||
e(d)
|
||||
raise ValueError("Hi")
|
||||
|
||||
|
||||
def e(arg):
|
||||
e = 1
|
||||
time.sleep(1)
|
||||
return e
|
||||
|
||||
|
||||
a()
|
||||
Reference in New Issue
Block a user