Visual Studio断点下方的蓝点是什么意思? [英] What does a blue dot beneath the Visual Studio breakpoint mean?

查看:217
本文介绍了Visual Studio断点下方的蓝点是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调试组合的c ++ c#项目(c#加载c ++ dll)时,我有时会在当前命中的断点下方得到这个小蓝点:

While debugging a combined c++ c# project (c# loading a c++ dll) I'm sometimes getting this small blue dot beneath the currently hit breakpoint:

那个圆点想告诉我什么?

What does that dot want to tell me?

推荐答案

如果您的应用是多线程的,并且将鼠标悬停在断点上,则会显示消息,例如自上一步以来,进程或线程已更改",则表示此中断点不仅适用于线程创建者,还适用于一个以上的线程.按F5后,将运行另一个线程,它们将达到您的断点,这可能会使您感到困惑.为了给您某种警告,Visual Studio在下面提供了一个蓝点.因此,有时冻结其他线程以调试方法可能很有用.

If you app is multithreaded and if hovering over break point gives you message is like "The process or thread has changed since the last step" it means that this break point is applied to more then one thread, not just thread creator. After you press F5 another threads will run and they will hit your break point which can confuse you. In order to give you some kind of warning visual studio give you blue dot beneath. So sometimes it can be useful to freeze other threads in order to debug method.

这篇关于Visual Studio断点下方的蓝点是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆