0
有沒有辦法在我自己的代碼中調用visual studio的對象可視化工具?說我想要點擊某些東西並像調試器那樣檢查它,如果我在代碼中將其懸停或將其添加到手錶中?有沒有辦法在代碼中調用調試器的可視化器?
有沒有辦法在我自己的代碼中調用visual studio的對象可視化工具?說我想要點擊某些東西並像調試器那樣檢查它,如果我在代碼中將其懸停或將其添加到手錶中?有沒有辦法在代碼中調用調試器的可視化器?
我想這可能工作:
var ddv = new Microsoft.VisualStudio.DebuggerVisualizers
.VisualizerDevelopmentHost(this,typeof(FormMain));
ddv.ShowVisualizer();
但它拋出:
System.InvalidCastException: Unable to cast object of type 'Herbsta.FormMain'
to type 'Microsoft.VisualStudio.DebuggerVisualizers.DialogDebuggerVisualizer'.