本文介绍了如何从DragonBoard 410C启用Windbg进行调试打印?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个DragonBoard 410C,我正在运行Windows 10 IoT核心。我希望通过"Serial to USB"接收主机PC上的所有调试打印件。使用Windbg的电缆。 [注意:我看到来自引导加载程序和UEFI的调试打印但看不到HLOS的任何打印] 我按照以下步骤使用DB410C启用Windbg。 1)使用PowerShell连接到目标板(DB410C) /> 参考号:https://developer.microsoft.com/en-us/windows/iot/docs/powershell #Open PowerShell在管理员模式下 #Start WinRM PS C:\ WINDOWS \system32> net start WinRM Windows远程管理(WS-Management)服务正在启动。 Windows远程管理(WS-Management)服务已成功启动。 #获取,设置和清除可信主机的命令 get-item wsman:\ localhost \Client \\ \\ ThustedHosts Set-Item WSMan:\ localhost \Client \TrustedHosts -Value< ip_addr> Clear-Item WSMan:\ localhost \ Client \\ \\TrustedHosts #将目标设置为可信主机 PS C:\ WINDOWS \ system32> ; Set-Item WSMan:\ localhost \Client \TrustedHosts -Value< ip_addr> WinRM安全配置。 此命令修改WinRM客户端的TrustedHosts列表。 TrustedHosts列表中的计算机可能未经过b 身份验证。客户端可能会将凭据信息发送到这些计算机。您确定要修改此此列表吗? [Y]是 [N]否 [S]暂停 [?]帮助(默认为"Y"):Y $ #连接目标板 PS C: \WINDOWS\system32>输入-PSSession -ComputerName< ip_addr> -Credential< ip_addr> \Administrator ------------------------- -------------------------------------------------- ------------------------------------------------ 2)在主机PC上设置符号路径 参考号:https://msdn.microsoft.com /en-us/library/windows/hardware/ff558829(v=vs.85).aspx #在管理员模式下打开命令支持 $ setx _NT_SYMBOL_PATH" srv * https://msdl.microsoft.com/download/symbols" ---- -------------------------------------------------- -------------------------------------------------- -------------------- 3)使用DB410C设置Windbg(使用PowerShell连接DB410C后) ) $ 参考:https://developer.microsoft.com/en-us/windows/iot/docs/windbg 参考: https://msdn.microsoft.com/en-us/library/windows/hardware/dn745914(v=vs.85).aspx 参考:https://msdn.microsoft.com/ EN-US /库/ windows / hardware / ff556867(v = vs.85).aspx #bcdedit help bcdedit /? #bcdedit设置串行连接 bcdedit / store c:\ EFIESP \ EFI \ Microsoft /\\Boot \BCD / debug ON bcdedit / store c:\ EFIESP \ EVI\Microsoft\Boot \BCD / dbgsettings 串行调试端口:1波特率: 115200 $ #Windbg详细打开/关闭 参考号:https://msdn.microsoft.com /en-us/library/windows/hardware/ff540340(v=vs.85).aspx kd> ed kd_default_mask 0xffffffff ------------------------- -------------------------------------------------- -------------------------------------------------- ------------------------ 看到如下图所示的内容。请帮忙。 。 解决方案 Hi Sunny, 您确定要编译调试版的代码是否已编译进行调试? 此致, p> IoTGirl Hi,I have a DragonBoard 410C, on which I am running Windows 10 IoT core. I want to receive all the debug prints on my host PC via a "Serial to USB" cable using Windbg.[Note: I am seeing debug prints from bootloaders and UEFI but can't see any print from HLOS] I am following the below steps to enable Windbg with DB410C.1) Connect to target board (DB410C) using PowerShellRef : https://developer.microsoft.com/en-us/windows/iot/docs/powershell#Open PowerShell in administator mode#Start WinRMPS C:\WINDOWS\system32> net start WinRMThe Windows Remote Management (WS-Management) service is starting.The Windows Remote Management (WS-Management) service was started successfully.#Commands to get, set and clear trusted hostsget-item wsman:\localhost\Client\TrustedHostsSet-Item WSMan:\localhost\Client\TrustedHosts -Value <ip_addr>Clear-Item WSMan:\localhost\Client\TrustedHosts#Set the target as trusted hostPS C:\WINDOWS\system32> Set-Item WSMan:\localhost\Client\TrustedHosts -Value <ip_addr>WinRM Security Configuration.This command modifies the TrustedHosts list for the WinRM client. The computers in the TrustedHosts list might not beauthenticated. The client might send credential information to these computers. Are you sure that you want to modifythis list?[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y#Connect to the target boardPS C:\WINDOWS\system32> Enter-PSSession -ComputerName <ip_addr> -Credential <ip_addr>\Administrator---------------------------------------------------------------------------------------------------------------------------2) Set symbol path on the host PCRef : https://msdn.microsoft.com/en-us/library/windows/hardware/ff558829(v=vs.85).aspx#Open command propmt in administrator modesetx _NT_SYMBOL_PATH "srv*https://msdl.microsoft.com/download/symbols"----------------------------------------------------------------------------------------------------------------------------3) Set-up Windbg with DB410C (after connecting DB410C using PowerShell)Ref: https://developer.microsoft.com/en-us/windows/iot/docs/windbgRef: https://msdn.microsoft.com/en-us/library/windows/hardware/dn745914(v=vs.85).aspxRef: https://msdn.microsoft.com/en-us/library/windows/hardware/ff556867(v=vs.85).aspx#bcdedit helpbcdedit /?#bcdedit setup serial connectionbcdedit /store c:\EFIESP\EFI\Microsoft\Boot\BCD /debug ONbcdedit /store c:\EFIESP\EFI\Microsoft\Boot\BCD /dbgsettings Serial debugport:1 baudrate:115200#Windbg verbose on/offRef: https://msdn.microsoft.com/en-us/library/windows/hardware/ff540340(v=vs.85).aspxkd> ed kd_default_mask 0xffffffff-----------------------------------------------------------------------------------------------------------------------------------------------------Am seeing something like shown in the image below. Please help.. 解决方案 Hi Sunny,Are you sure the code you are expecting Debug Prints from is compiled for debug?Sincerely,IoTGirl 这篇关于如何从DragonBoard 410C启用Windbg进行调试打印?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-11 09:43