Windows 任务管理器中的“转储文件”是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34252338/
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
what is a "dump file" in windows task manager?
提问by
I know that with windows you can generate a dump file by going to task manager->processes-> right clicking on the process.
我知道在 Windows 中,您可以通过转到任务管理器-> 进程-> 右键单击进程来生成转储文件。
- what is a dump file ?
- what can i do with .dmp file?
- 什么是转储文件?
- 我可以用 .dmp 文件做什么?
回答by IInspectable
A .dmp file is a Minidump, a snapshot of a live process containing information about its current state (including memory, stack traces, thread information, module information, exception context information). This information allows you to inspect a snapshot of a process. It is often generated when a process is about to crash due to an unhandled exception, but can be taken at any point.
.dmp 文件是一个Minidump,它是一个活动进程的快照,包含有关其当前状态的信息(包括内存、堆栈跟踪、线程信息、模块信息、异常上下文信息)。此信息允许您检查进程的快照。它通常在进程由于未处理的异常而即将崩溃时生成,但可以在任何时候采取。
It can be created using the MiniDumpWriteDumpAPI, and opened with any Windows Debugger (like Visual Studio1)or WinDbg, KD, CDB, NTSD). See Crash Dump Analysisfor additional information.
它可以使用MiniDumpWriteDumpAPI创建,并使用任何 Windows 调试器(如 Visual Studio 1)或WinDbg、KD、CDB、NTSD打开。有关其他信息,请参阅故障转储分析。
1)Depending on the information present in the Minidump file, Visual Studio may not be able to open a specific .dmp file. The other debuggers do not impose any restrictions, as far as I know.1)根据 Minidump 文件中存在的信息,Visual Studio 可能无法打开特定的 .dmp 文件。据我所知,其他调试器没有施加任何限制。
回答by Peter
As per https://msdn.microsoft.com/en-gb/library/d5zhxt22.aspxa dump file is a snapshot of the application at that moment in time.
根据https://msdn.microsoft.com/en-gb/library/d5zhxt22.aspx,转储文件是当时应用程序的快照。
Dump files are used to aid debugging applications when they go wrong.
转储文件用于在应用程序出错时帮助调试应用程序。