简体   繁体   English

如何获取Windows错误报告(WER)以保存内存转储以供挂起?

[英]How do you get Windows Error Reporting (WER) to save memory dumps for hangs?

WER is creating memory dumps after an application hangs. 应用程序挂起后,WER正在创建内存转储。 When Windows shows the dialog box ApplicationName is not responding , if the user clicks Close the program , I can see .hdmp files being created in C:\\ProgramData\\Microsoft\\Windows\\WER\\Temp . 当Windows显示对话框ApplicationName没有响应时 ,如果用户单击“ 关闭程序” ,则可以在C:\\ProgramData\\Microsoft\\Windows\\WER\\Temp看到正在创建的.hdmp文件。 After it sends them to Microsoft, this folder is created: C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportArchive\\AppHang_WindowsFormsApp5_823dc9208bf3a14f898f39469b7b6a0c6f17c7_3db8b24d_07a39f1b . 将它们发送给Microsoft之后,将创建以下文件夹: C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportArchive\\AppHang_WindowsFormsApp5_823dc9208bf3a14f898f39469b7b6a0c6f17c7_3db8b24d_07a39f1b However, this folder only has a .wer file with a summary. 但是,此文件夹只有一个带有摘要的.wer文件。

Can Windows Error Reporting be configured to keep the memory dumps capturing the unresponsive application on the local disk? 是否可以将Windows错误报告配置为保留内存转储以捕获本地磁盘上无响应的应用程序?

I have already tried Computer\\HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting\\LocalDumps , but it is only creating dumps for crashes, not hangs. 我已经尝试过Computer\\HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting\\LocalDumps ,但是它只是为崩溃创建转储,而不是挂起。

You can use the ConfigureArchive setting of WER and set it to '2' [All data]. 您可以使用WER的ConfigureArchive设置并将其设置为“ 2” [所有数据]。 That will capture and archive all the data (instead of just Report.wer). 这将捕获并存档所有数据(而不只是Report.wer)。

See ConfigureArchive at https://docs.microsoft.com/en-us/windows/desktop/wer/wer-settings . 请参阅https://docs.microsoft.com/zh-cn/windows/desktop/wer/wer-settings上的 ConfigureArchive

From an elevated prompt, run: 在提升的提示符下,运行:

Reg add "hklm\software\microsoft\windows\windows error reporting" /f /t REG_DWORD /v ConfigureArchive /d 2

Setting Corporate WER server would cause all the crash/hang reports to sit on your device and they will never reach Microsoft. 设置公司WER服务器将导致所有崩溃/挂起报告都位于您的设备上,并且它们永远不会到达Microsoft。 That may not be the ideal solution. 那可能不是理想的解决方案。

Create a REG_SZ value called CorporateWerServer in Computer\\HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting\\ , and set it's value to empty string. Computer\\HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting\\创建一个名为CorporateWerServer的REG_SZ值,并将其值设置为空字符串。 Since Windows cannot contact the Corporate WER Server, the hang dumps will remain in C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportQueue\\ 由于Windows无法联系Corporate WER Server,因此挂起转储将保留在C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportQueue\\

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Windows power shell 中,如何提取属性文件值并将其保存到环境变量? - In Windows power shell, how do you extract a properties file value and save it to an env var? 如何获得在 WSL2 Linux 包括 Windows 10 中工作的 Windows Explorer 的 TortoiseGit GUI? - How do you get TortoiseGit GUI for Windows Explorer working in WSL2 Linux including Windows 10? 您如何将在Windows的Visual Studio 17中创建的应用程序获取到本地iphone? - How do you get an app, created in Visual Studio 17 on windows, to my local iphone? 您如何在Windows通用应用程序中定位 - How do you anchor within Windows universal app 如何在Windows 10 XAML中模糊图像? - How do you blur an image in Windows 10 XAML? 你如何阅读Windows 10核心的串口 - How do you read the serial port with windows 10 core 如何在Windows上禁用Bash中的铃声? - How do you disable the bell sound in Bash on Windows? 如何在 Windows 10 中安装 Flash 调试版本 - How do you install flash debug version with Windows 10 如何在 Windows 10 上设置玻璃混合颜色? - How do you set the glass blend colour on Windows 10? 如何更改Windows Universal应用程序中的标题栏颜色? - How do you change the title bar color in a Windows Universal app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM