From 18d3ebd1400216675f522a05b057f95d65370cab Mon Sep 17 00:00:00 2001 From: Marco Rossignoli Date: Wed, 17 Aug 2022 09:48:10 +0200 Subject: [PATCH] Update troubleshooting.md --- docs/troubleshooting.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index f1faaa8..7579048 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -244,3 +244,38 @@ jobs: * Create a zip with all files available Note: these logs could contain sensitive information (paths, project name...). Make sure to clean them or use the Visual Studio `Send Feedback` button. Don't put anything you want to keep private in the title or content of the initial report, which is public. Instead, say that you'll send details privately in a separate comment. Once the problem report is created, it's now possible to specify who can see your replies and attachments. + +## Use procdump https://docs.microsoft.com/it-it/sysinternals/downloads/procdump +Sometimes is not possible take the dump using test platform tool because the crash happen before we're able to attach to the process to take the dump self. In that situation we need a way to register for dump at process startup level. +To achieve it we can use procdump that will install machine wide Just-in-time (AeDebug) debugger. +```bash +PS C:\tools\Procdump> .\procdump.exe -i C:\tools\Procdump\dumps + +ProcDump v10.11 - Sysinternals process dump utility +Copyright (C) 2009-2021 Mark Russinovich and Andrew Richards +Sysinternals - www.sysinternals.com + +Set to: + HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug + (REG_SZ) Auto = 1 + (REG_SZ) Debugger = "C:\tools\Procdump\procdump.exe" -accepteula -j "C:\tools\Procdump\dumps" %ld %ld %p + +Set to: + HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug + (REG_SZ) Auto = 1 + (REG_SZ) Debugger = "C:\tools\Procdump\procdump.exe" -accepteula -j "C:\tools\Procdump\dumps" %ld %ld %p + +ProcDump is now set as the Just-in-time (AeDebug) debugger. +``` +After you can run your application and in case of crash a dump will be automatically taken inside the `C:\tools\Procdump\dumps` directory. +``` +PS C:\tools\Procdump> ls C:\tools\Procdump\dumps + + + Directory: C:\tools\Procdump\dumps + + +Mode LastWriteTime Length Name +---- ------------- ------ ---- +-a---- 8/17/2022 9:42 AM 6161605 dotnet.exe_220817_094234.dmp +```