Windbg 在文件打开时中断
我有一个 .net 应用程序,但我也没有源代码。我有兴趣确定该应用程序正在访问哪些文件。我认为调试器是实现此目的的好方法。我只在 Linux 领域工作,对 Windows 调试器一无所知。我觉得应该有一种方法可以用 Windbg 来做到这一点,我知道我会如何用 gdb 来实现这一点,但不知道如何用 Windbg 来实现。非常感谢任何帮助或建议。
I have a .net application which I don't have source too. I'm interested in determining what files this application is accessing. I thought that a debugger would be a good way to do this. I work only in the linux world and know nothing about windows debuggers. I feel like there should be a way to do this with windbg, I know how I would go about it with gdb but not with windbg. Any help or advice is much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您只想监视给定进程的文件系统活动,那么您不会找到比 进程监视器。它还可以做更多的事情,并且是免费的,来自 Sysinternals(现在的 Microsoft)。
If you just want to monitor file system activity for a given process then you won't find anything better than Process Monitor. It does lots more too and it's free from Sysinternals (now Microsoft).
如果您只想知道正在访问哪些文件,Stu 是对的。
但是,如果您想了解有关调试 .net 应用程序的更多信息,可以在将 SOS.dll 加载到 Windbg 中时在 .net 代码上放置断点。它比我在这里描述的要复杂得多,但您可以 Google Windbg 和 SOS.DLL 来查找更多信息。 Tess Ferrandez 有一个很棒的博客,您可能也会觉得有用:http://blogs.msdn.com /b/苔丝/
Stu is right if you just want to know what files are being accessed.
But if you want to know more about debugging .net apps, you can place break points on .net code when you have SOS.dll loaded into windbg. It's more involved than I can describe here, but you can Google windbg and SOS.DLL to find more info. Tess Ferrandez has a great blog that you may find useful, too: http://blogs.msdn.com/b/tess/