Hi,
I am trying to set up debug environment for debugging KMDF driver and filter drivers over network. Both the host and target machines are x64, Windows 8.1. I am using visual studio 13 and WDK 8.1 with update. I set up the debug environment over network via visual studio. I built the KMFD Hello World Driver (http://msdn.microsoft.com/en-us/library/windows/hardware/hh439665) and deployed it to the target machine via visual studio successfully. However, I cannot do the debugging. I don’t see any kd command prompt as mentioned in the link above and cannot ‘Break All’ also. Also tried inserting breakpoint at particular functions. I am posting the debugger message for your convenience:
Starting New Debugger Session
Microsoft (R) Windows Debugger Version 6.3.9600.17237 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
User-Host\User (npipe WinIDE_01D009D20CCA6B01) connected at Wed Nov 26 15:38:15 2014
Microsoft (R) Windows Debugger Version 6.3.9600.17237 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Using NET for debugging
Opened WinSock 2.0
Waiting to reconnect…
[15:38:16:924]: Removing any existing files from the remote driver folder
[15:38:17:346]: Removing any existing files from test execution folder
te.exe “%SystemDrive%\DriverTest\Run\DriverTestTasks.dll” /select:“@Name='DriverTestTasks::DriverRemoval’" /p:“InfFile=HelloWorldDriver.inf” /p:“Debug=1” /p:“ImportDriver=1” /p:“RemoveDriver=1” /p:“HardwareId=Root\HelloWorldDriver” /p:“CertificateFile=HelloWorldDriverPackage.cer” /p:“PackageGuid={A23BA0FC-7265-4E3C-B99F-1E7A04AD970D}” /rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Logs\Driver_Removal(x64)_(possible_reboot)_00009.wtl”,writemode=append,encoding=unicode,nofscache=true,EnableLvl=“WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*” /runas:Elevated
[15:38:38:065]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
[15:38:38:799]: Removing any existing files from test execution folder
te.exe “%SystemDrive%\DriverTest\Run\DriverTestTasks.dll” /select:“@Name='DriverTestTasks::DriverPreparation’" /p:“InfFile=HelloWorldDriver.inf” /p:“Debug=1” /p:“ImportDriver=1” /p:“RemoveDriver=1” /p:“HardwareId=Root\HelloWorldDriver” /p:“CertificateFile=HelloWorldDriverPackage.cer” /p:“PackageGuid={A23BA0FC-7265-4E3C-B99F-1E7A04AD970D}” /rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Logs\Driver_Preparation(x64)_(possible_reboot)_00009.wtl”,writemode=append,encoding=unicode,nofscache=true,EnableLvl=“WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*” /runas:Elevated
[15:38:43:533]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
[15:38:44:143]: Removing any existing files from test execution folder
te.exe “%SystemDrive%\DriverTest\Run\DriverTestTasks.dll” /select:“@Name='DriverTestTasks::RunProcess’" /p:“BinaryPath=%SystemDrive%\DriverTest\devcon.exe” /p:“Arguments=-f install %SystemDrive%\DriverTest\Drivers\HelloWorldDriver.inf Root\HelloWorldDriver” /p:“ExitCodes=0” /p:“WorkingFolder=%SystemDrive%\DriverTest\Drivers” /p:“LogOutput=1” /rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Logs\Driver_Install(x64)_(possible_reboot)_00009.wtl”,writemode=append,encoding=unicode,nofscache=true,EnableLvl=“WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*” /runas:Elevated
[15:38:47:471]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
[15:38:48:143]: Removing any existing files from test execution folder
te.exe “%SystemDrive%\DriverTest\Run\DriverTestTasks.dll” /select:“@Name='DriverTestTasks::DriverPostInstall’" /rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Logs\Driver_Post_Install_Actions(x64)_(possible_reboot)_00009.wtl”,writemode=append,encoding=unicode,nofscache=true,EnableLvl=“WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*” /runas:Elevated
[15:38:50:143]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
[15:38:50:846]: Driver Installation summary:
[15:38:50:846]: Driver Removal (x64) (possible reboot): Pass
[15:38:50:846]: Driver Preparation (x64) (possible reboot): Pass
[15:38:50:846]: Driver Install (x64) (possible reboot): Pass
[15:38:50:846]: Driver Post Install Actions (x64) (possible reboot): Pass
I also tried to connect to the debugee (with the port and key got after the target provisioning through visual studio) by Windbg but it cannot connect, saying ‘unspecified error’!