Отладка mscorlib в .NET 4.0
-
15-11-2019 - |
Вопрос
Я получаю следующее исключение из System.io.Path.CheckinValibAdhphars () в MScorlib:
[ArgumentException: Незаконные персонажи в пути.]
System.io.path.checkinvalidPathchars (String. путь) +142
System.io.Path.Normalizepath (String. Путь, логическая полночность, INT32 MaxPathLength) +100
System.io.path.getfullpath (string. путь) +187
System.xml.xmlresolver.resulturi (URI. Baseuri, String Realpruuri) +114
System.xml.xmltextreaderimpl..Tor (String. URL, XMLNanceatable NT) +135
System.xml.xmldocument.load (String. Имя файла) +85
Sitecore.web.ui.webcontrols.weeditribbon.Converttojson (String. Макет) +210
Sitecore.web.ui.webcontrols.weeditribbon.runder (htmltextwriter. Выход, элемент товара) +1268
Sitecore.web.ui.webcontrol.render (htmltextwriter Вывод) +387
System.web.ui.control.renderChildrenannal (htmltextwriter. Сценарист, детские дети) +246
System.web.ui.htmlcontrols.htmlform.renderchildren (htmltextwriter Писатель) +315
System.web.ui.htmlcontrols.htmlcontainercontrol.render (htmltextwriter Писатель) +48
System.web.ui.control.rendercontrolinternal (htmltextwriter. Писатель, управляющий адаптер) +11279890 System.Web.ui.control.renderChildrenannernal (htmltextwriter Сценарист, детские дети) +246
System.web.ui.page.render (htmltextwriter. Писатель) +40
System.web.ui.page.processrequestmain (Boolean в том числеStagebeforeasyncpoint, boolean Включение в комплекте) +5274Дело в том, что я не то значение path - это вызывает эту ошибку. Это поможет, если бы я мог отладить метод, чтобы я мог видеть значение параметра PATH. Я включил вступление в систему .NET Framework Code в Visual Studio 2010. Я также загрузил связанные символы .NET Framework с серверов символов Microsoft. Однако, кажется, эти PDBS не включают источник; Поэтому я не могу выйти в CheckInvalyPAPHAPHARS и получить значение пути.
Можно ли отлаживать mscorlib и выпустить его источник?
Соответствующая информация:
.
- .NET Framework 4.0.
- Visual Studio 2010
Любой конструктивный вход значительно ценится.
Спасибо, Фрэнк
Решение
You can get the reference source for the .NET libraries.
http://referencesource.microsoft.com/
Looking at your stacktrace, the problem appears to be originating in Sitecore.Web.UI.WebControls.WebEditRibbon.ConvertToJson
. That thing is trying to load an XML file.
Другие советы
Using reflector would allow you to do that.
Is it possible that you enabled to break on all exceptions? Doing that would certainly account for internal exceptions showing up in the debugger. If this is the case, you can safely ignore the exception.
Well mscorlib.dll on your machine is of release build so even though you can very well debug into it, you won't be able to see values local variables/objects etc. The code in this binary is optimized. If you want perfect debugging experience of Microsoft .NET code then you will need to install debug version of .NET on your machine.