當我調試我的ASP.NET應用程序並在中斷點執行中斷時,我無法使用Debug Watches讀取type
變量。爲什麼?我得到錯誤VS調試器不能按預期工作
type The name 'type' does not exist in the current context
的代碼工作正常,只是在調試的問題,我看不懂,同時調試所有變量。
var converterSubClasses = new List<Type>();
GetClassHierarhy(ref converterSubClasses, converterClass);
foreach (var type in converterSubClasses)
{
/* break point here */ var classProperties = type.GetProperties(BindingFlags.Public | BindingFlags.Instance);
/* skip code */
}
你可以將鼠標移到單詞類型上並以此方式查看該值嗎? –
@JesusRamos當我在其他變量上移動時,我在類型單詞上移動時沒有得到任何彈出消息。 – Tomas
你可以添加屏幕截圖嗎? – Reniuz