进入VS 2012的'调试器立即窗口'中的KdPrintEx不打印任何消息。 [英] KdPrintEx in 'Debugger Immediate Window' into VS 2012 is not printing any msg.

查看:104
本文介绍了进入VS 2012的'调试器立即窗口'中的KdPrintEx不打印任何消息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在使用主机上的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

推荐答案

Hey Solved!,



更改了安装驱动程序的目标机器上的Component Filter Mask的值。

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet \Control\Session Manager \Debug Print Filter。



在此键下,创建一个名为IHVDRIVER的值并设置此键的值等于DWORD值0x8。



我选择IHVDRIVER因为在我的KdPrintEx中((DPFLTR_IHVDRIVER_ID,DPFLTR_INFO_LEVEL, \\ n KmdfSmallEvtDeviceAdd已被称为\ n))

和DWORD值0x8因为调平。



详细信息:http:// msdn.microsoft.com/en-us/library/windows/hardware/ff551519(v=vs.85).aspx



谢谢你



问候

matt
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


这篇关于进入VS 2012的'调试器立即窗口'中的KdPrintEx不打印任何消息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆