问题描述
我必须缺少某些东西..(我习惯使用eclipse)
Visual Studio 2008似乎在我打破断点时挂起所有线程 - 这是正常?如果是这样,是否有一个选项只会暂停断点所在的线程?
是的,这是完全正常的为调试器做。考虑如果没有的话会发生什么。调试器显示的任何值都必须被视为过时,因为其他正在运行的线程可能会从其下面更改值。
$ b
我不相信在Visual Studio中有一种方法可以暂停所有的线程。
I must be missing something.. (I'm used to using eclipse)
Visual Studio 2008 appears to suspend all threads when I hit a breakpoint - is this normal? If so, is there an option that will only suspend the thread on which the breakpoint has hit?
Yes this is completely normal for a debugger to do. Consider what would happen if it did not. Any value the debugger displayed would have to be considered out of date the moment it was displayed because any of the other running threads could be changing the value out from under it.
I don't believe there is a way to break in Visual Studio without pausing all threads.
这篇关于VS2008暂停所有线程击中断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!