Skip to content

Commit

Permalink
Add some crash dump tips for Linux (#72719)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouv authored Apr 11, 2024
1 parent 3969ebd commit f1f3f19
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/wiki/Troubleshooting-tips.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Capturing a crash dump

## Using a registry setting
## Using a registry setting (recommended on Windows)

Create a registry key file (`dump.reg`) with the contents below, then execute it. The settings mean that every crash will produce a full dump (`DumpType`=2) in the folder specified by `DumpFolder`, and at most one will be kept (every subsequent crash will overwrite the file, because `DumpCount`=1).

Expand All @@ -19,6 +19,10 @@ Windows Registry Editor Version 5.00

More [information](https://msdn.microsoft.com/en-us/library/windows/desktop/bb787181(v=vs.85).aspx)

## Using environment variables (recommended on Linux)

Define the container with the [correct variables](https://learn.microsoft.com/en-us/dotnet/core/diagnostics/collect-dumps-crash) to collect a dump on crash.

# Running the compiler with a long command line

Often times the command-line recorded by msbuild logs is very long. Simply copy/pasting it into a command window fails, because the line gets truncated.
Expand Down

0 comments on commit f1f3f19

Please sign in to comment.