dotnet-dump - Analyze .Net Core dump file

Dump 出 .Net Core 的 Dump file 後。


可使用 dotnet-dump analyze 帶上 Dump file 的位置進行 Dump 檔的分析。

dotnet-dump analyze $dump_file


分析是使用 SOS 命令,像是要查詢 Thread,可輸入 clrthreads 命令。

clrthreads


要查詢呼叫堆疊,可輸入 clrstack 命令。

clrstack


要查看是什麼錯誤導致程式死掉,可使用 pe 命令。

pe -lines