调试微过滤器
一段时间以来,我一直在使用 IFS 套件在 Windows 7 上编写和调试微过滤器。它终于可以工作了,但是当我需要添加更多功能时,我会花更多的时间来玩它,
我担心的是调试。到目前为止,我只是构建了驱动程序,将其安装在虚拟机上,并通过验证 dbg_print 语句对其进行了测试。我一直在使用这种简单且容易出错的方法,因为我找不到任何有关如何以更结构化和编程方式调试微过滤器的信息。
有没有调试微过滤器或过滤器的最佳实践方法?可以使用 VisualDDK 向 Visual Studio 添加(远程)调试功能以用于微过滤器吗?
问候, 好奇心
I have been writing and debugging a minifilter on Windows 7 using the IFS Kit for some time now. it finally works, but as I require to add further functionality, I will spend some more days playing with it
what I'm worried about is debugging. until now I have simply built the driver, installed it on a virtual box and tested it by verifying dbg_print statements. I have been using this simple and error prone approach, as I could not find anything about how to debug minifilters more structured and programmatically.
are there any best practice methods to debug minifilters or filters? can visualDDK be used to add (remote) debugging functionality to visual studio for minifilters?
greetings,
curiosity
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Windows DDK 包含 windbg 的副本,您可以使用它通过命名管道连接到虚拟机适当的配置。
您可以使用VirtualKD来获得更好的效果,以获得加速通道 /em> 与 Windows 中嵌入的内核调试器进行对话。
如果您想使用 Visual Studio 用户界面进行调试,您应该查看 VisualDDK 。
两者都是强大的工具,但首次设置时需要做一些工作。
我倾向于只使用 WinDBG,因为它是在随机 QA 机器等上设置的最简单的东西。
但我已经使用这些工具在项目的初始开发过程中快速迭代。
祝你好运。
The Windows DDK includes a copy of windbg which you can use to connect to the VM over a named pipe with the appropriate configuration.
You can do one better by using VirtualKD to get an accelerated channel to talk to the kernel debugger embedded in Windows.
If you want to do debugging using the Visual Studio user interface, you should look at VisualDDK.
Both are powerful tools, but they require a little work to get set up the first time.
I tend to just use WinDBG because it is the easiest thing to set up on random QA machines etc.
But I have used those tools to iterate rapidly during initial development of a project.
Good luck.
Visual Studio 不支持内核模式下的调试。您可以使用 kd 或 WinDbg,它们都是 Windows DDK 中包含的调试器包的一部分。这将帮助您开始调试:
Visual Studio does not support debugging in kernel mode. You can use kd or WinDbg, which are both part of the Debugger package included in Windows DDK. This will get you started with debugging: