Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows Driver Device Debugging , +
Hello,
 
Host Win7_x64, target VM Win7_x64 both on same physical machine.
Driver debugging using VS 2012 (Visual Studio Integrated Windows Debugger.)
 
Able to provisioning between Host and target using VS 2012 and WDK 8.0.
 
KmdfSmall driver given on msdn is properly able to install on target VM; showing into Device Manager as well on target VM, as posted in my last query.
 
when ever I'm pressing F5, 'Debugger Immediate Window' in VS 2012 also showing 'breakpoint hit' and as I mentioned earlier in my msg, return value of KdPrintEx is also correct i.e. STATUS_SUCCESS.
 
Do I missing some setting into VS 2012 to display the msg's of "KdPrintEx". Means why my KdPrintEx((DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, "\n KmdfSmallEvtDeviceAdd has been called\n")) is not printing any msg's into 'Debugger Immediate Window'.
 
Regards
matt
Posted 14-Jun-13 23:28pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Hey Solved!

changed the value of Component Filter Mask on target machine where driver has been installed to debug.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter.

Under this key, created a value with the name "IHVDRIVER" and Set the value of this key equal to the DWORD value 0x8".

I choose "IHVDRIVER" because in my KdPrintEx((DPFLTR_"IHVDRIVER"_ID, DPFLTR_INFO_LEVEL, "\n KmdfSmallEvtDeviceAdd has been called\n"))
And DWORD value 0x8 because Leveling.

For detail: http://msdn.microsoft.com/en-us/library/windows/hardware/ff551519(v=vs.85).aspx

thanks you

regards
matt
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 520
1 Maciej Los 290
2 Richard MacCutchan 265
3 BillWoodruff 265
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,764
1 Sergey Alexandrovich Kryukov 7,437
2 DamithSL 5,639
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411028.1 | Last Updated 16 Jun 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100