本文介绍了打破单线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个后台线程执行简单的数据发送/接收,我想要发生的,同时在其他线程中逐步执行我的代码。
解决方案
打开线程视图(Debug- > Windows->线程),右键单击要暂停的线程,选择冻结。选择解冻将其恢复到运行状态。
Is it possible to break a single thread in Visual Studio, while other threads will continue their execution?
I have one background thread that does simple data sending/receiving, which I would like to happen, while stepping through my code in some other thread.
解决方案
open the thread view (Debug->Windows->Threads), right-click the thread you want to suspend, select 'Freeze'. Select 'Thaw' to put it back in a running state.
这篇关于打破单线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!