1

使用 Eclipse 调试 Fortran 时出现问题(我使用 gfortran 编译器)。我不能设置断点,或者更准确地说,只有“并行断点”类型可用(绿色的)。然后当我开始调试时,所有程序都被执行(而我希望它停止,当然,只要遇到断点)。我习惯在 Matlab 中编程,但最近开始学习 Fortran,因为它要快得多;但是我对这个调试问题很着迷(Matlab 更容易调试;只需双击设置断点,然后按 F5 或 F11,如果您想介入)。

4

1 回答 1

0

这很可能是 IDE 中的错误,请参阅错误 384187。您使用的是最新的 Photran 版本吗?在如何在 Eclipse 中使用 Photran IDE 设置断点?据称该错误已被修复。

如果一切正常(它应该),那么在 Eclipse 中进行调试就像在 Matlab 中一样容易。

Fortran has a long history in numerical computations that is why we have such a vast amount of legacy Fortran code. However, if I started learning a new programming language I would either learn C or C++.

于 2013-08-07T14:56:22.950 回答