none
[SOLVED] VS 2015 (WDK 10) Driver Debugger cannot break RRS feed

  • Question

  • Hello!

            I am running windows 10 x64 bit on both host and target machine. The target machine is a virtual ( I'm using vmware workstation ). I tested VS 2013 with windows 8.1 on both host and target, it worked perfectly but the problem with WDK 10 on win10 is that it won't go beyond the step "Task "Driver Post Install Actions" completed successfully".  I tried to break it but it has absolutely no effect. Here's the log:  

    Microsoft (R) Windows Debugger Version 10.0.15063.137 AMD64
    Copyright (c) Microsoft Corporation. All rights reserved.
    
    DESKTOP-B9C35VO\danis (npipe WinIDE_01D2BAB589011CA2) connected at Fri Apr 21 20:40:00 2017
    
    Microsoft (R) Windows Debugger Version 10.0.15063.137 AMD64
    Copyright (c) Microsoft Corporation. All rights reserved.
    
    Using NET for debugging
    Opened WinSock 2.0
    Waiting to reconnect...
    [20:40:00:612]: Remove Existing Remote Package
    [20:40:00:623]: Task "Remove Existing Remote Package" completed successfully
    [20:40:00:626]: Copy Driver Package
    [20:40:00:715]: Task "Copy Driver Package" completed successfully
    [20:40:00:718]: Driver Removal
    [20:40:00:718]: Removing any existing files from test execution folder.
    [20:40:00:732]: Copying required files for "Driver Removal".
    
    $KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverRemoval'" /p:"InfFile=KMDFDriver1.inf" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"CertificateFile=KMDFDriver1.cer" /p:"PackageGuid=x64" /p:"HardwareId=Root\KMDFDriver1" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Removal_00010.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
    [20:40:46:539]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
    [20:40:46:540]: Task "Driver Removal" completed successfully
    [20:40:46:909]: Driver Preparation
    [20:40:46:910]: Removing any existing files from test execution folder.
    [20:40:46:926]: Copying required files for "Driver Preparation".
    
    $KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverPreparation'" /p:"InfFile=KMDFDriver1.inf" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"CertificateFile=KMDFDriver1.cer" /p:"PackageGuid=x64" /p:"HardwareId=Root\KMDFDriver1" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Preparation_00010.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
    [20:40:50:590]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
    [20:40:50:592]: Task "Driver Preparation" completed successfully
    [20:40:50:938]: Driver Install
    [20:40:50:939]: Removing any existing files from test execution folder.
    [20:40:50:955]: 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\KMDFDriver1.inf Root\KMDFDriver1" /p:"WorkingFolder=%SystemDrive%\DriverTest\Drivers" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Install_00010.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
    [20:40:54:572]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
    [20:40:54:573]: Task "Driver Install" completed successfully
    [20:40:54:928]: Driver Post Install Actions
    [20:40:54:928]: Removing any existing files from test execution folder.
    [20:40:54:944]: 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_00010.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
    [20:40:56:538]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
    [20:40:56:539]: Task "Driver Post Install Actions" completed successfully
    -----------------------------------------------------------------------
    -----------------------------------------------------------------------
                      Starting New Debugger Session         
    -----------------------------------------------------------------------
    -----------------------------------------------------------------------
    
    Microsoft (R) Windows Debugger Version 10.0.15063.137 AMD64
    Copyright (c) Microsoft Corporation. All rights reserved.
    
    DESKTOP-B9C35VO\danis (npipe WinIDE_01D2BAB63CE9288E) connected at Fri Apr 21 20:45:01 2017
    
    Microsoft (R) Windows Debugger Version 10.0.15063.137 AMD64
    Copyright (c) Microsoft Corporation. All rights reserved.
    
    Using NET for debugging
    Opened WinSock 2.0
    Waiting to reconnect...
    [20:45:02:061]: Remove Existing Remote Package
    [20:45:02:075]: Task "Remove Existing Remote Package" completed successfully
    [20:45:02:079]: Copy Driver Package
    [20:45:02:144]: Task "Copy Driver Package" completed successfully
    [20:45:02:148]: Driver Removal
    [20:45:02:153]: Removing any existing files from test execution folder.
    [20:45:02:169]: Copying required files for "Driver Removal".
    
    $KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverRemoval'" /p:"InfFile=KMDFDriver1.inf" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"CertificateFile=KMDFDriver1.cer" /p:"PackageGuid=x64" /p:"HardwareId=Root\KMDFDriver1" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Removal_00011.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
    [20:45:38:915]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
    [20:45:38:916]: Task "Driver Removal" completed successfully
    [20:45:39:326]: Driver Preparation
    [20:45:39:327]: Removing any existing files from test execution folder.
    [20:45:39:344]: Copying required files for "Driver Preparation".
    
    $KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverPreparation'" /p:"InfFile=KMDFDriver1.inf" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"CertificateFile=KMDFDriver1.cer" /p:"PackageGuid=x64" /p:"HardwareId=Root\KMDFDriver1" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Preparation_00011.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
    [20:45:43:044]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
    [20:45:43:045]: Task "Driver Preparation" completed successfully
    [20:45:43:420]: Driver Install
    [20:45:43:420]: Removing any existing files from test execution folder.
    [20:45:43:437]: 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\KMDFDriver1.inf Root\KMDFDriver1" /p:"WorkingFolder=%SystemDrive%\DriverTest\Drivers" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Install_00011.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
    [20:45:47:081]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
    [20:45:47:082]: Task "Driver Install" completed successfully
    [20:45:47:506]: Driver Post Install Actions
    [20:45:47:507]: Removing any existing files from test execution folder.
    [20:45:47:523]: 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_00011.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
    [20:45:49:143]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
    [20:45:49:144]: Task "Driver Post Install Actions" completed successfully





    Friday, April 21, 2017 3:50 PM

Answers

  • Solution: That's a bug in VS 2015. Use windbg. After Task "Driver Post Install Actions" completed successfully, you can then stop the VS 2015 debugging and start windbg ( remember if target is x64 then choose x64 windbg if target is x86 then start x86 windbg application ) on the host computer. My target computer was my Vmware virtual machine windows 10 x64 bit. Well, I don't want to write an entire tutorial here so I'll just link a video which I found extremely helpful: https://www.youtube.com/watch?v=yQQLIEM6qp8&index=6&list=PLhx7-txsG6t6n_E2LgDGqgvJtCHPL7UFu


    Thursday, April 27, 2017 8:52 AM