Visual Studio 2012需要什么设置来打印内核调试消息? [英] What settings does Visual Studio 2012 require to print the Kernel debug messages?

查看:129
本文介绍了Visual Studio 2012需要什么设置来打印内核调试消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

主机Win7_x64和目标VM Win7_x64都在同一台物理计算机上.
使用VS 2012进行驱动程序调试(Visual Studio集成Windows调试器.)

能够使用VS 2012和WDK 8.0在主机和目标之间进行配置.

msdn上提供的KmdfSmall驱动程序可以正确安装在目标VM上;也显示在目标VM上的设备管理器中,如我上次查询中所述.

每当我按F5键时,VS 2012中的调试器即时窗口"也会显示断点命中",并且正如我之前在味精中提到的那样,KdPrintEx的返回值也是正确的,即STATUS_SUCCESS.

我是否在VS 2012中缺少一些设置来显示"KdPrintEx"的消息.这就是为什么我的 KdPrintEx((DPFLTR_IHVDRIVER_ID,DPFLTR_INFO_LEVEL,"\ n KmdfSmallEvtDeviceAdd被调用\ n"))不会在调试器立即窗口"中打印任何msg的原因''.

问候
matt

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

推荐答案

嘿,解决了!

更改了已安装驱动程序进行调试的目标计算机上的组件筛选器掩码的值.
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Session Manager \ Debug打印筛选器.

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

我选择"IHVDRIVER"是因为在我的KdPrintEx(((DPFLTR_"IHVDRIVER" _ID,DPFLTR_INFO_LEVEL,"\ n KmdfSmallEvtDeviceAdd被称为\ n"))
而且DWORD的值为0x8,这是因为它具有找平功能.

有关详细信息:http://msdn.microsoft.com/zh-cn/library/windows/hardware/ff551519(v=vs.85).aspx

谢谢

问候
哑光
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


这篇关于Visual Studio 2012需要什么设置来打印内核调试消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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