问题描述
我对树莓派2上运行时,Windows 10物联网的.NET通用应用程序的转储:
I have a dump of a .NET Universal App running on Raspberry Pi 2, Windows 10 IoT:
0:000> vertarget
Windows 10 Version 10240 MP (4 procs) Free ARM (NT) Thumb-2
Product: WinNt, suite: SingleUserTS
Built by: 10.0.10240.16384 (th1.150709-1700)
我看到它使用 coreclr
像Silverlight这样做。之前
I see it uses coreclr
like Silverlight did before.
0:000> lm vm coreclr
start end module name
6e430000 6e7fd000 coreclr (export symbols) coreclr.dll
Loaded symbol image file: coreclr.dll
...
Timestamp: Thu Jul 16 21:37:39 2015 (55A88693)
...
File version: 4.6.23117.0
Product version: 4.0.23117.0
做一个!分析-v
不会自动下载SOS。
Doing an !analyze -v
does not download SOS automatically.
加载SOS的Silverlight的版本,我在我的电脑上找到指示错误的版本:
Loading the Silverlight version of SOS I found on my PC indicates the wrong version:
0:000> .load C:\Program Files\Microsoft Silverlight\5.1.20513.0\sos.dll
0:000> !threads
The version of SOS does not match the version of CLR you are debugging. Please
load the matching version of SOS for the version of CLR you are debugging.
CLR Version: 4.6.23117.0
SOS Version: 5.1.20513.0
Failed to load data access DLL, 0x80004005
...
似乎实现,但我无法找到一个二进制下载。
It seems that SOS was implemented on GitHub but I could not find a binary download.
在我的Visual Studio 2015年社区PC,我可以找到一个名为<$ C文件夹中的$ C> mrt100sos.dll C:\Program Files\MSBuild\Microsoft\.NetNative\x86\
这原来是一个调试扩展,并说:
On my PC with Visual Studio 2015 Community, I could find a file called mrt100sos.dll
in the folder C:\Program Files\MSBuild\Microsoft\.NetNative\x86\
which turns out to be a debugging extension and says:
0:000> !help
mrt100sos is a debugger extension DLL designed to aid in debugging .NET Native
programs.
...
听起来很棒。但在运行了以下错误消息的任何命令的结果:
which sounded great. But running any commands results in the following error message:
0:000> !threads
Failed to find runtime DLL (mrt100_app.dll), 0x80004005
Extension commands need mrt100_app.dll in order to have something to do.
我运行的想法......
I'm running out of ideas...
如何调试一个.NET通用的应用程序转储的方式,我可以看到.NET调用堆栈?,它在这个问题恕我直言结果的我在哪里可以得到SOS为Windows 10物联网?
How do I debug a .NET universal app dump in a way that I can see the .NET callstack?, which IMHO results in the question Where can I get SOS for Windows 10 IoT?
推荐答案
该CoreCLR可以在跨平台的.NET运行时执行(DNX)主办。结果
因此,如果您安装ASP.NET 5或Visual Studio 2015年,你应该有DNX这条道路上:结果
%USERPROFILE%\.dnx
The CoreCLR can be hosted in the cross-platform .NET Execution Runtime (DNX).
Thus, if you install ASP.NET 5 or Visual Studio 2015, you should have DNX on this path:%userprofile%\.dnx
通过 DNVM安装
(包括DNX),你应该能够安装版本完全相同CoreCLR的,但目前并不为1.0.23430.0工作 - 我们在UWP10.0
Via DNVM install
(included with DNX), you should be able to install the exact same version of CoreCLR, but currently this doesn't work for 1.0.23430.0 - what we have in UWP10.0.
总之,在SOS %USERPROFILE%\.dnx\runtimes\dnx-coreclr共赢 - x86.1.0.0-RC1-update1\bin\sos.dll
似乎工作,即使有一个小的版本不匹配:搜索结果
SOS的版本不匹配正在调试的CLR版本。请
加载SOS的匹配版本正在调试的CLR版本。
CLR版本:4.6.23430.0
SOS版本:4.6.23516.1
Anyway, SOS at %userprofile%\.dnx\runtimes\dnx-coreclr-win-x86.1.0.0-rc1-update1\bin\sos.dll
seems to work, even if there's a small version mismatch:The version of SOS does not match the version of CLR you are debugging. Pleaseload the matching version of SOS for the version of CLR you are debugging.CLR Version: 4.6.23430.0SOS Version: 4.6.23516.1
这篇关于我在哪里可以得到SOS为Windows 10物联网?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!