Tool for capturing managed stack traces from .NET applications. Usage: ClrStack.exe PID You could pass THREAD_DUMP_DIR environment variable with path to existing directory to write thread dump in file.