2016-02-18 3 views
-3

J'utilise la machine hôte windows7 ici J'ai installé Vusual Studio 2013 et WDK 8.1 J'ai aussi une machine virtuelle Windows 10 qui utilise Virtual Box.Problèmes de débogage à distance avec le pilote en mode noyau

Je crée un nouveau pilote KMDF à partir du modèle et j'essaie de le déboguer.

Je réussis à provisionner la machine cible (qui est virtuelle avec win10), le pilote a été déployé avec succès, mais le débogueur est toujours inactif. Ce journal est de Debugger Inmmediate fenêtre:

----------------------------------------------------------------------- 
----------------------------------------------------------------------- 
        Starting New Debugger Session   
----------------------------------------------------------------------- 
----------------------------------------------------------------------- 

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

SM72UC\User (npipe WinIDE_01D16A27752C70A4) connected at Thu Feb 18 11:36:27 2016 

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

Opened \\.\pipe\com1 
Waiting to reconnect... 
[11:36:28:242]: Removing any existing files from the remote driver folder 
[11:36:28:771]: Removing any existing files from test execution folder 

te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverRemoval'" /p:"InfFile=KMDFTest.inf" /p:"Debug=1" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"HardwareId=Root\KMDFTest" /p:"CertificateFile=KMDFTestPackage.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 
[11:36:52:104]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0 
[11:36:52:705]: Removing any existing files from test execution folder 

te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverPreparation'" /p:"InfFile=KMDFTest.inf" /p:"Debug=1" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"HardwareId=Root\KMDFTest" /p:"CertificateFile=KMDFTestPackage.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 
[11:36:58:137]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0 
[11:36:58:792]: 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\KMDFTest.inf Root\KMDFTest" /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)_00003.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated 
[11:37:22:743]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0 
[11:37:23:235]: 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 
[11:37:25:227]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0 
[11:37:25:775]: Driver Installation summary: 
[11:37:25:781]: Driver Removal (x64) (possible reboot): Pass 
[11:37:25:784]: Driver Preparation (x64) (possible reboot): Pass 
[11:37:25:785]: Driver Install (x64) (possible reboot): Pass 
[11:37:25:787]: Driver Post Install Actions (x64) (possible reboot): Pass 

après ce débogueur stucks, la console est inactif et me montrer texte « debuggee est en cours d'exécution ... » Je ne tends pas mon point d'arrêt à la fonction DriverEntry, ne pas voir les messages de débogage du noyau et du pilote.

J'ai également essayé les paramètres de réseau pour le débogage, mais le même résultat.

Quel mal?

Y at-il un problème VirtualBox? Ou c'est parce que j'essaie de déboguer le pilote win7 sur win10?

Répondre

0

En attente de reconnexion ... signifie que le débogueur attend la réponse de la machine cible. Pendant que la machine cible ne fonctionne rien, Vous devez le casser. Dans WinDBG en appuyant sur Ctrl + C, dans Visual Studio en appuyant sur icône de pause.