Runs the tests in blame mode and collects a crash dump when the test host exits unexpectedly. This option depends on the version
of .NET used, the type of error, and the operating system.
For exceptions in managed code, a dump will be automatically collected on .NET 5.0 and later versions. It will generate a dump for
the test host or any child process that also ran on .NET 5.0 and crashed. Crashes in native code will not generate a dump. This
option works on Windows, macOS, and Linux.
Crash dumps in native code, or when using .NET Core 3.1 or earlier versions, can only be collected on Windows, by using Procdump.
A directory that contains
procdump.exe and
procdump64.exe must be in the PATH or PROCDUMP_PATH environment
variable.
Download the tools.
Implies
--blame
.
To collect a crash dump from a native application running on .NET 5.0 or later, the usage of Procdump can be forced by setting the
VSTEST_DUMP_FORCEPROCDUMP
environment variable to
1
.