问题描述
您好,
我正在使用主机上的VS2012调试目标虚拟机上安装的KmdfSmall驱动程序。
但是,VS 2012中的'调试器立即窗口'在主机上没有打印任何消息。在这里我使用KdPrintEx((DPFLTR_IHVDRIVER_ID,DPFLTR_INFO_LEVEL,\ n KmdfSmallEvtDeviceAdd已被称为\ n)),因为它在msdn http://msdn.microsoft.com/en-us/library/windows/中给出hardware / hh439665(v = vs.85).aspx。
我更新了flag的值以及OSRonline中描述的http://www.osronline.com /article.cfm?article=295
HKLM \ SYSTEM> \\ CCS \Control\Session Manager \Debug Print Filter。在此键下,创建一个名为DEFAULT的值,并将此键的值设置为等于DWORD值0xf。
但是没有任何改变。可能是我正在寻找错误的地方KdPrintExmsg o / p。
有一点是KdPrintEx的明确返回值是正确的,即STATUS_SUCCESS。我已经检查过了。
所以,请告诉我哪里错了。
问候
matt
Hello,
I'm debugging KmdfSmall driver installed on target VM by using VS2012 which is on Host.
But, 'Debugger Immediate Window' in VS 2012 on host not printing any msg. Here I'm using KdPrintEx((DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, "\n KmdfSmallEvtDeviceAdd has been called\n")) as it is given in msdn http://msdn.microsoft.com/en-us/library/windows/hardware/hh439665(v=vs.85).aspx.
I updated the value of flag as well as described in OSRonline http://www.osronline.com/article.cfm?article=295
"HKLM\SYSTEM\CCS\Control\Session Manager\Debug Print Filter". Under this key, created a value with the name "DEFAULT" and Set the value of this key equal to the DWORD value 0xf".
But nothing changed. Might be I'm looking on wrong place for "KdPrintEx" msg o/p.
One thing is clear return value of KdPrintEx is correct i.e. STATUS_SUCCESS. I've checked it.
So, please let me know where do m wrong.
Regards
matt
推荐答案
这篇关于进入VS 2012的'调试器立即窗口'中的KdPrintEx不打印任何消息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!