To create a native crash dump for the MATLAB process on a Windows Machine, do the following:
- Open up Windows Command Prompt as Administrator
- Execute the following command:
- Start MATLAB from the same Command Prompt
- Perform the steps that cause MATLAB to crash. When MATLAB would otherwise crash, it will now hang instead.
- Open Windows Task Manager
- Expand the MATLAB <version> process
- Right-click on the MATLAB <version> process
- Select "Create dump file" - The "Dumping Process" will start and at the end will indicate where the file has been saved.
- Use Task Manager to end the MATLAB process
The above process will create a full memory dump, which contains a lot of information that can be used to help troubleshoot the crash.
Note
that MW_CRASH_MODE is an undocumented feature, and may change at any time.