windows 用于查看可执行映像加载了哪些文件/dll 的实用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5114331/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Utility for viewing which files/dlls are loaded by an executable image
提问by GregH
I know there is a utility for this because I used to use it...just can't remember the name. I'm looking for a Windows (Windows-7) utility that will allow me to select an executable image running and have it tell me what files/dlls that program has loaded and from what directory. I am writing software in Visual Studio and would like to verify at runtime which dlls my program is loading.
我知道有一个实用程序,因为我曾经使用过它……只是不记得名字了。我正在寻找一个 Windows (Windows-7) 实用程序,它可以让我选择一个正在运行的可执行映像,并让它告诉我该程序从哪个目录加载了哪些文件/dll。我正在 Visual Studio 中编写软件,并希望在运行时验证我的程序正在加载哪些 dll。
回答by Hans Passant
Visual Studio does it well. Use Tools > Attach to Process, Debug > Break All. Then Debug > Windows > Modules. For VS2015+ start that with Debug > Attach to Process.
Visual Studio 做得很好。使用“工具”>“附加到进程”、“调试”>“全部中断”。然后调试 > Windows > 模块。对于 VS2015+,从 Debug > Attach to Process 开始。
回答by RoboAlex
use Process Monitoror Process Explorer.