依据博文:
https://blog.lindexi.com/post/win10-uwp-收集-dump-文件?tdsourcetag=s_pctim_aiomsg
亲测X64机器上有效。
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v DumpFolder /t REG_EXPAND_SZ /d %LOCALAPPDATA%\CrashDump
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v DumpType /t REG_DWORD /d 1
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v DumpCount /t REG_DWORD /d 10
Windows网页帮助:
https://docs.microsoft.com/zh-cn/windows/desktop/wer/collecting-user-mode-dumps
Dump生成路径:
C:\Users\your-name\AppData\Local\CrashDumps