Visual studio 2015 调试器无法通过网络连接进入vs 2015 professional中的KMDF驱动程序

Visual studio 2015 调试器无法通过网络连接进入vs 2015 professional中的KMDF驱动程序,visual-studio-2015,driver,windows-10,kmdf,Visual Studio 2015,Driver,Windows 10,Kmdf,我正在尝试使用update2在visual studio 2015 professional中设置远程驱动程序调试。我的主机运行的是64位Windows 8.1 home edition,目标是一台运行64位Windows 10 home edition的独立计算机。我可以通过网络成功调配/配置目标计算机,然后按F5调试/部署KMDF驱动程序,部署驱动程序大约需要2分钟,然后部署的显示停止,我认为部署的过程已经完成,然后我在目标站点中看到设备管理器,驱动程序已经成功安装,但当我按“全部中断”按钮

我正在尝试使用update2在visual studio 2015 professional中设置远程驱动程序调试。我的主机运行的是64位Windows 8.1 home edition,目标是一台运行64位Windows 10 home edition的独立计算机。我可以通过网络成功调配/配置目标计算机,然后按F5调试/部署KMDF驱动程序,部署驱动程序大约需要2分钟,然后部署的显示停止,我认为部署的过程已经完成,然后我在目标站点中看到设备管理器,驱动程序已经成功安装,但当我按“全部中断”按钮中断调试器时,什么也没有发生,它无法中断调试器,kd控制台窗口(即kd>)仍然被禁用(灰色),它无法输入任何命令。这意味着驱动程序的部署尚未完成,但奇怪的是,没有显示任何关于部署的错误消息,并且驱动程序也已成功安装到目标站点

下面是部署阶段“调试器即时窗口”输出的信息。这个问题花了我好几个星期才解决,但我还是不能。我希望有人能帮助我或给我一些建议,谢谢

Microsoft (R) Windows Debugger Version 10.0.10586.567 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

SIMON\simon96 (npipe WinIDE_01D1BFBFC94007E3) connected at Mon Jun 06 14:51:00 2016

Microsoft (R) Windows Debugger Version 10.0.10586.567 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

Using NET for debugging
Opened WinSock 2.0
Waiting to reconnect...
[14:51:01:965]: Remove Existing Remote Package
[14:51:02:028]: Task "Remove Existing Remote Package" completed successfully
[14:51:02:028]: Copy Driver Package
[14:51:02:434]: Task "Copy Driver Package" completed successfully
[14:51:02:449]: Driver Removal
[14:51:02:449]: Removing any existing files from test execution folder.
[14:51:02:543]: Copying required files for "Driver Removal".

$KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverRemoval'" /p:"InfFile=Test7KMDF_vs2015_u2.inf" /p:"Debug=1" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"CertificateFile=Test7KMDF_vs2015_u2.cer" /p:"PackageGuid=x64" /p:"HardwareId=Root\Test7KMDF_vs2015_u2" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Removal_00016.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
[14:51:36:544]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
[14:51:36:544]: Task "Driver Removal" completed successfully
[14:51:37:215]: Driver Preparation
[14:51:37:215]: Removing any existing files from test execution folder.
[14:51:37:262]: Copying required files for "Driver Preparation".

$KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverPreparation'" /p:"InfFile=Test7KMDF_vs2015_u2.inf" /p:"Debug=1" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"CertificateFile=Test7KMDF_vs2015_u2.cer" /p:"PackageGuid=x64" /p:"HardwareId=Root\Test7KMDF_vs2015_u2" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Preparation_00016.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
[14:51:48:934]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
[14:51:48:934]: Task "Driver Preparation" completed successfully
[14:51:49:622]: Driver Install
[14:51:49:622]: Removing any existing files from test execution folder.
[14:51:49:763]: Copying required files for "Driver Install".

$KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_RunProcess'" /p:"BinaryPath=%SystemDrive%\DriverTest\devcon.exe" /p:"Arguments=-f install %SystemDrive%\DriverTest\Drivers\Test7KMDF_vs2015_u2.inf Root\Test7KMDF_vs2015_u2" /p:"WorkingFolder=%SystemDrive%\DriverTest\Drivers" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Install_00008.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
[14:51:58:653]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
[14:51:58:653]: Task "Driver Install" completed successfully
[14:51:59:028]: Driver Post Install Actions
[14:51:59:028]: Removing any existing files from test execution folder.
[14:51:59:075]: Copying required files for "Driver Post Install Actions".

$KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverPostInstall'" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Post_Install_Actions_00017.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
[14:52:07:560]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
[14:52:07:575]: Task "Driver Post Install Actions" completed successfully

花了一天的时间,我发现了一些对我有用的东西

注意:我对主机和目标计算机使用了静态IP连接

步骤1

在主机上配置目标设备(使用Visual Studio)以便在目标计算机上部署之前。在目标机器上启动

具有高级安全性的Windows防火墙

检查

Windows防火墙属性

在域中,私有和公共配置文件设置

入站连接

允许。我还通过将所有域、公共和私有配置文件的防火墙状态设置为“关闭”来禁用防火墙

步骤2

a) 使用Visual Studio解决方案资源管理器在主机上配置目标设备。确保为目标机器的以太网适配器设置了正确的总线参数。查看目标机器上网络适配器的设备管理器,检查需要设置哪些总线参数

b) 启动调试器时,它会在目标计算机上部署驱动程序之前的最后一步停止。您将看到以下消息

等待完成.. 等待完成..

c) 检查目标机器上的静态IP设置;在驱动程序部署的最后阶段,这些将被空白条目覆盖。请更正这些条目,并确保可以从目标ping主机,反之亦然

d) 完成上述操作后,驱动程序部署完成,您不会再看到任何“等待完成”消息(您可能会收到与设置还原点相关的错误。忽略它)

步骤3

如果一切正常,您应该在调试器即时窗口中看到以下消息

Using NET for debugging
Opened WinSock 2.0
Waiting to reconnect...
[10:59:06:155]: Remove Existing Remote Package
[10:59:06:582]: Task "Remove Existing Remote Package" completed successfully
[10:59:06:601]: Copy Driver Package
Connected to target 169.254.31.204 on port 50839 on local IP 192.168.1.2.

我也有这样的问题。你找到解决方案了吗?当我尝试进入windows 10目标时,当我尝试连接内核进程打开winsock 2.0并等待永远重新连接时,我也会遇到这种情况……你是否尝试过手动设置网络内核调试,如下所述:?