【问题标题】:How do I add a breakpoint in Visual Studio for a whole class如何在 Visual Studio 中为整个班级添加断点
【发布时间】:2019-02-04 09:57:01
【问题描述】:

我想为整个类添加断点,而不仅仅是为函数添加断点,以便查看该类是否会被使用。

【问题讨论】:

标签: c# visual-studio breakpoints


【解决方案1】:

向构造函数添加断点。如果一个不存在,则为此创建一个空的。例如

public class Example
{
    public Example()
    { // Breakpoint goes here.
    }
}

【讨论】:

    猜你喜欢
    • 2016-12-19
    • 2015-08-29
    • 1970-01-01
    • 2018-01-30
    • 1970-01-01
    • 1970-01-01
    • 2020-09-01
    • 1970-01-01
    • 2012-05-28
    相关资源
    最近更新 更多