gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 15:35:57 24 4
gpt4 key购买 nike

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com