Is there a way to customize the tool tip of a custom object in the VS Debugger?

前端 未结 1 813
既然无缘
既然无缘 2020-12-19 18:58

Say you have a custom class call it Foo. When you then have an instance of this class, during debugging, if you mouse over this object, you\'ll either see the fully qualifie

1条回答
  •  感情败类
    2020-12-19 19:37

    Yeah, check out the MSDN article Enhancing Debugging with the Debugger Display Attributes, which offers:

    • DebuggerDisplayAttribute - Calculate a string to display
    • DebuggerBrowsableAttribute - Indicate which members should be shown
    • DebuggerTypeProxyAttribute - Indicate a separate type that provides data to be shown.

    0 讨论(0)
提交回复
热议问题