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

前端 未结 1 812
既然无缘
既然无缘 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)
提交回复
热议问题