【发布时间】:2014-05-29 19:57:42
【问题描述】:
我想知道如何将windbg 附加到windows phone 8.1 中运行的进程。谷歌搜索没有帮助。有谁能够帮助我?谢谢
【问题讨论】:
标签: debugging windows-phone windbg windows-phone-8.1
我想知道如何将windbg 附加到windows phone 8.1 中运行的进程。谷歌搜索没有帮助。有谁能够帮助我?谢谢
【问题讨论】:
标签: debugging windows-phone windbg windows-phone-8.1
将 WinDbg 连接到手机上的现有进程
1. 在 TShell 中,输入以下命令:
debug-device --debugger WinDbgPath
其中 WinDbgPath 是主机上 WinDbg 的路径。
2. 示例:
debug-device –debugger “C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x86\WinDbg.exe”
3. 在 WinDbg 的“文件”菜单上,选择“附加到进程”。选择列出的进程之一,然后单击“确定”。
更多参考Use debug-device in TShell to attach a debugger to a process
【讨论】:
您不能使用 windbg 使用公共工具附加到运行在 WP8.1 设备或模拟器(实际上是一个虚拟机,因此出于所有意图和目的是不同的机器)上运行的进程。 Microsoft 可能为此提供了内部工具,但如果有,则无法使用。
您尚未说明您要达到的目标,但您可能需要使用性能和诊断工具(通过调试菜单)来获取所需的信息。
更多内容见http://blogs.msdn.com/b/visualstudioalm/archive/2014/04/03/performance-profiling-on-windows-phone-8-1-with-visual-studio.aspx
【讨论】:
您必须使用 USB-EEM 连接该设备。 然后您可以通过主机上的以下方法连接该设备的windbg: 1.打开windbg。 2 转到文件-> 内核 dbug 3.跳过端口号,输入key值为1.2.3.4。 然后重新启动您的设备。 将连接到您的设备。
【讨论】: