0

我创建了一个可调试的 fortran 可执行文件(我们称它为“myfortranprogram”),我可以通过 gdb 调试器传递它来调试、设置断点等:

cd sourcedir/
gdb myfortranprogram
#start debugging

假设源文件位于相同的源目录“sourcedir”中,如果这有什么不同的话。

因此,对于非常大的项目,使用终端进行编译会变得有点慢,我更喜欢使用 XCode 接口进行调试。由于 myfortranprogram 已经是可调试的可执行文件,我必须采取哪些步骤才能在 XCode 中对其进行调试?据我了解,XCode 能够使用 gdb 进行调试。

谢谢!

4

1 回答 1

0

Ah, found the answer: http://forums.macrumors.com/archive/index.php/t-807021.html

it's simple, just create an empty project in xcode, point a new custom executable to the path of the compiled application, and do 'run myexecutablename'

于 2011-12-11T19:18:01.340 回答