我有一个在IIS上运行的经典ASP网站.我用VS 2015打开它(在文件菜单中打开网站)并保存解决方案(打开它时说它是一个预编译的网站 - 无论这意味着什么).然后我附加到进程来调试它.
现在,我放置的断点在某些.aspx页面上被击中,而在其他页面上没有.知道为什么会这样吗?我检查了webconfig,它的调试选项设置为true.可能缺少一些PDB文件.人们建议重建网站,但是当我点击构建或重建解决方案时,该过程立即成功完成,所以我怀疑任何东西都被重新编译了.
我可以修改这些页面的代码,IIS会在下一个请求中重新编译它们,但不确定为什么断点不会在那里被击中.他们显然曾经在我的代码中放了类似Debugger.Launch()的内容,但这不是我想要的.
我不是专家,所以如果你能帮我解决这个问题,我将不胜感激.
谁能解释为什么这段代码什么都不打印:
import threading
def threadCode1():
while True:
pass
def threadCode2():
while True:
pass
thread = threading.Thread(target=threadCode1())
thread2 = threading.Thread(target=threadCode2())
thread.start()
print('test')
thread2.start()
Run Code Online (Sandbox Code Playgroud)
但如果我删除括号:
thread = threading.Thread(target=threadCode1)
thread2 = threading.Thread(target=threadCode2)
Run Code Online (Sandbox Code Playgroud)
它打印'测试'?这对我来说是一个非常令人惊讶的结果.