您可能不知道转储文件(dump file)是什么,但您可能已经注意到Windows 10在崩溃到蓝屏(Blue Screen)死机(Death)( BSOD )时提到了转储文件。(dump file)转储文件(dump file)是创建文件时应用程序或进程(app or process)的快照。转储文件显示创建文件的(dump file)应用程序或进程(app or process)在内存中执行和加载的内容、崩溃的内容、发生的错误等等。转储文件(dump file)中的数据对于解决应用程序、驱动程序和操作系统的问题总是有用的。以下是如何快速创建一个(dump file)在Windows中(Windows)转储文件,用于您要排除故障的应用程序或进程:(app or process)
如何为应用程序、后台或 Windows 进程(background or Windows process)创建转储文件(dump file)
首先,打开任务管理器(Task Manager)。一种快速的方法是同时按下键盘上的CTRL + SHIFT + Esc键。如果您看到精简视图,其中仅列出了几个应用程序,请单击或点按(click or tap) 更多详细信息(More details)。
当任务管理器(Task Manager)的完整版本打开时,单击或点击进程(Processes)选项卡。在这里,您会看到一个包含正在运行的应用程序、后台进程和Windows进程的列表。
找到要为其创建转储文件(dump file)的应用程序或进程,然后右键单击(或按住)它。在打开的菜单中,单击或点击(click or tap) 创建转储文件(Create dump file)。
任务管理器(Task Manager)然后为选定的应用程序或进程(app or process)创建一个转储文件(dump file),并通知您进度。完成后,您会看到“文件已成功创建”。("The file has been successfully created.")
您找到文件的路径也是共享的。记住用于转储文件的(dump file)文件名(file name),并复制显示的路径,或将其写下来,然后按OK。您可以将文件位置(file location)粘贴到文件资源管理器(File Explorer)中以访问它。
如果在某个应用或进程(app or process)上右击或长按,“创建转储文件”(Create dump file")选项灰显且不可用,则表示选中的项目有多个子进程。您需要首先通过单击或点击其名称附近的箭头来展开它,然后右键单击或按住要为其创建转储文件(dump file)的特定子进程。
注意:(NOTE:)要了解有关使用任务管理器的(Manager)进程(Processes)选项卡的更多信息,请阅读:在Windows 10中使用(Windows 10)任务管理器(Task Manager)管理正在运行的进程的 11 种方法
在哪里可以找到您刚刚创建的转储文件(dump file)
始终显示由任务管理器创建的(Task Manager)转储文件(dump file)的直接路径。但是,如果您在未复制地址的情况下单击“确定”,请打开(OK)文件资源管理器(File Explorer),然后转到此位置:C:UsersYourUserNameAppDataLocalTemp。将YourUserName替换为您的用户帐户(user account)的名称。转储文件(dump file)始终具有DMP 文件(DMP file)扩展名,其名称取决于应用程序的名称或(app or process)为其创建的进程的名称。在下面的屏幕截图中,我们为OneDrive创建了一个(OneDrive)转储文件(dump file),该文件名为OneDrive.DMP。
重要提示:(IMPORTANT:)如果找不到要打开的AppData文件夹,则必须将文件资源管理器(File Explorer)设置为显示隐藏文件和文件夹。
您为哪个应用程序或进程(app or process)创建了转储文件(dump file)?
大多数人不需要使用转储文件(dump file)。但是,如果您遇到应用程序停止响应的问题,或者特定进程产生的错误和崩溃,则创建转储文件(dump file)对于故障排除和修复问题很有用。在关闭本指南之前,请告诉我们您为哪个Windows 应用程序或进程(Windows app or process)创建了转储文件(dump file),以及您遇到了哪些问题(如果有)。在下面发表评论(Comment),让我们讨论。
How to create a dump file for an app, background or Windows process
You may not know what a dump file is, but you may have noticed Windows 10 mentioning a dump file when it crashes іnto a Blue Screen of Death (BSОD). Α dυmp file is a snapshot of an аpp or process, at the time when the file is crеated. The dump file shows what was executed and loaded in memory by the app or process for which the file is created, what crashed, which error(s) tоok place, аnd so on. The data from a dump file is always useful for troubleshooting problems with apps, drivers, and operating systems. Here is how to quickly create a dump file in Windows, for an app or process that you want to troubleshоot:
How to create a dump file for an app, background or Windows process
First, open Task Manager. A quick way to do that is to press the CTRL + SHIFT + Esc keys simultaneously on your keyboard. If you see the compact view, with just a few apps listed, click or tap More details.
When the full version of the Task Manager opens, click or tap the Processes tab. Here you see a list with running apps, background processes, and Windows processes.
Find the app, or the process for which you want to create a dump file, and right-click (or press-and-hold) on it. In the menu that opens, click or tap Create dump file.
The Task Manager then creates a dump file for the selected app or process, and it informs you of the progress. When done, you are shown that "The file has been successfully created."
The path where you find the file is also shared. Remember the file name used for the dump file, and copy the path shown, or write it down, then press OK. You can paste the file location in File Explorer, to access it.
If you right-click or press-and-hold on an app or process, and the "Create dump file" option is grayed out and unavailable, it means that the selected item has several subprocesses. You need to expand it first, by clicking or tapping the arrow near its name, and then right-click or press-and-hold the specific subprocess for which you want to create the dump file.
NOTE: To find out more about working with the Processes tab of Task Manager, read: 11 ways to manage running processes with the Task Manager in Windows 10
Where to find the dump file that you just created
The direct path to the dump file created by the Task Manager is always shown. However, if you clicked OK without copying the address, open File Explorer, and go to this location: C:UsersYourUserNameAppDataLocalTemp. Replace YourUserName with the name of your user account. The dump file always has the DMP file extension, and its name varies depending on the name of the app or process that it was created for. In the screenshot below, we created a dump file for OneDrive, and the file was named OneDrive.DMP.
IMPORTANT: If you cannot find the AppData folder to open it, then you have to set File Explorer to display hidden files and folders.
For which app or process have you created the dump file?
Most people do not need to use dump files. However, if you encounter problems with apps that stop responding, or errors and crashes generated by specific processes, creating a dump file is useful for troubleshooting and fixing the problem. Before closing this guide, tell us for which Windows app or process did you create a dump file, and what problems, if any, you encountered. Comment below and let's discuss.