c# - "Show Threads in Source"按钮在 VC# 2010 Express 中有什么作用吗?

标签 c# visual-studio-2010

Visual C# 2010 Express 版本有一个“在源代码中显示线程”按钮。它已启用,单击时会更改状态等,但它似乎什么也没做。将鼠标悬停在边缘不会在按下时在工具提示中产生任何线程信息。

我一直在寻找一种方法来调试我在调试时有时会收到的“进程或线程自上一步以来已更改”消息。 VC# Express 似乎没有线程窗口。在 Express 中调试时如何查看自己所在的线程?

最佳答案

它在使用多线程应用程序时提供额外的调试信息,并且必须在调试 session 开始之前激活。

When this option is turned on you get some very nice visual indicators to show information about your threads. If you look carefully, you will see that the breakpoint symbol actually has a red and blue squiggly line through it and, just below that you see a similar marker. If you hover the mouse over the threads marker you will see a debug tool tip that shows you all of the threads that are executing at that location. If you notice there are also some source code lines shaded in grey, which indicates that another thread is executing at the same location.

取自here .另一个“特性”(至少如果您使用的是 C++)是它会大大降低运行速度。

关于c# - "Show Threads in Source"按钮在 VC# 2010 Express 中有什么作用吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14284767/

相关文章:

mysql - 如何在 Visual Studio 中连接到 MySQL 数据源

c# - 每次单击按钮时从网站列表中打开随机网站

c# - 返回单元格与字符串相似的行号

c# - 如何使用 LINQ (C# 3.0) 更改 IDictionary 的内容

visual-studio-2010 - 如何显示接口(interface)方法的所有实现实例?

c++ - VS 2012 与 VS 2010 的互操作性

c++ - 使用 Boost::Asio 发送 TCP SYN 数据包

c# - webBrowser 控件中的 PDF 文档在关闭应用程序时导致 'The memory could not be "read"' 错误

c# - 是否存在用于将 CSS/HTML/jQuery 代码转换为 C++ 或 C# 代码的 C++ 或 C# 库?

visual-studio-2010 - Windows7 上的 Mercurial/TortoiseHG 中奇怪的区分大小写的目录名称行为