如何找到 MATLAB 生成的崩溃转储文件(crash dump files)?

MATLAB 崩溃之后,我希望在我的计算机上找到崩溃文件。

 Accepted Answer

这些文件采用以下两种形式之一命名:
matlab_crash_dump.XXXX
其中 XXXX 是一个数字。例如,文件名为“matlab_crash_dump.3284”
或者,对于 Java 崩溃,
java.log.XXXX
其中 XXXX 是一个数字。例如,文件名为“java.log.3944”。
这些文件位于操作系统存储临时文件的文件夹中。 在 Windows 上,在MATLAB中导航至以下位置:
tempdir
或者,打开 Windows 命令提示 (CMD),然后键入以下命令:
cd %temp%
这会引导您转至保存崩溃文件的目录中。 您可以执行以下命令在 Windows 资源管理器中打开文件夹。
explorer .
崩溃的日志也可能存储在以下MATLAB命令返回的文件夹中:
userpath
在 Linux 和 Mac 平台上,创建崩溃转储文件的默认文件夹是您的主文件夹(home folder)。
请注意,如果 MATLAB 是使用“-logfile”选项启动的,则不会在崩溃文件夹中转储崩溃文件。崩溃文件将写入“-logfile”选项所指定的日志文件末尾。

More Answers (0)

Categories

Find more on 启动和关闭 in Help Center and File Exchange

Products

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!