Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Intel Fortran 11.0 and Xcode 3.1.1

jimmck
Beginner
771 Views

Hi,

I am trying to debug a 10,000 line code, which was written in the 70s. The Xcode integration is much improved, but I still have some issues.

1) In the Xcode debugger, I cannot see any globals. Locals are fine.

2) Global variables are "junk" when moused over in the debugger code window. The actual values are fine.

3) I assume due to the fortran definition file, variables that are alpha-numeric, such as temp1, will highlight as "temp" in the mouseover, and the syntax coloring uses numeric colors for numerics in the variable name. I can highlight the entire variable with the number at the end, and then info the correct value (if local) with mouseover.

4) Xcode does not recognize the different functions/subroutines for listing next to the file drop-down menu in Xcode. This of course does not allow for code folding either.

My question is: Are all the above known limitations, or am I doing something wrong?

The integration seems so close, withexcellentintegration in build rules of Xcode. If I need to wait for this functionality, is there another GUI IDE that I can use with ifort on OS X to get the above functionality? I am relatively new to using ifort, so please bear with me.

Thank you for any insight in advance.

Edit: below is a simple program to try the above out in Xcode & debugger:

PROGRAM fortrantest

COMMON GVAR

REAL X

GVAR=10

CALL MYSUB(X)

WRITE(*,*) X

END

C

SUBROUTINE MYSUB(X)

COMMON GVAR

REAL A1,X

A1=3.

X = GVAR*A1

RETURN

END

0 Kudos
4 Replies
Kevin_D_Intel
Employee
771 Views

Unfortunately, these are all known limitations with the current state of debugging Fortran programs under XCode. We continue to work with Apple to improve on this functionality.

Two previous posts available here and here discuss options of using the GNU DataDisplayDebugger (DDD) with the Intel Debugger for Mac OS or Parallels Desktop and Visual Studio for debugging Fortran programs on Mac OS X.

0 Kudos
jimmck
Beginner
771 Views
Hi everyone. It has been nearly 2 years and I am about to start another project to work in Fortran. Has there been any improvement for the items mentioned above? Do I need to do any special setup?
I notice that Absoft has an independent IDE made, but it would be great to have an Intel version or Xcode integration completed.
Thanks!
0 Kudos
Kevin_D_Intel
Employee
771 Views
There have been no improvements in debugging Fortran under Xcode. It remains on the wish list.
0 Kudos
jimmck
Beginner
771 Views
This is disappointing. However, I see that Apple has a preview release of Xcode 4 out to developers. Have you folks tried that (it has a new debugger), and if so, does it now work? If not I hope Intel has at least requested features that will allow ifort to work well in it!
Jim
0 Kudos
Reply