|
[Sponsors] |
March 13, 2007, 09:08 |
fortran debugger
|
#1 |
Guest
Posts: n/a
|
Hi,
I am currently working on a CFD code written in Fortran 95. I would like to switch from using write(*,*)'x= ' to using a source-level debugger. My first try was gdb with ddd as a front-end, but my code uses modules, and gdb does not handle them well (it is impossible to print variables declared inside modules). After some research on Internet, I found several other possibilities. I would like to know if people have tested them or have an opinion. Here are the issues related to my requirements (I need to run it on x86 machines): idb (Intel Compiler for Linux): is the Intel debugger compatible with ddd ? dbx (Sun Studio): the compiler bundled (sun f95 compiler) appears to only work on SPARC station Ladebug: seems to work on AlphaServers platform only I really need this debugging capacity, so if a solution involving, for example, a complete linux installation is available, I can bargain with the guys in charge of IT at the laboratory (I currently run windows on my desktop). What I need is a solution to compile and debug fortran code on x86 machines using as far as possible free packages. Thank you for your help, J.D. |
|
March 13, 2007, 10:46 |
Re: fortran debugger
|
#2 |
Guest
Posts: n/a
|
It seems like I could install the Intel Linux compiler, compile my programs, and then debug them using idb in either gdb or dbx mode, so that ddd could parse their outputs.
If anyone as an opinion on this, it would be much appreciated. Thanks, J.D. |
|
March 14, 2007, 07:09 |
Re: fortran debugger
|
#3 |
Guest
Posts: n/a
|
Hello,
From what i have seen, fortran + free + debugger cannot be found. On linux, there are Eclipse and Intel. Eclipse cannot debug, and idb (intel) is not particularly nice. I am developing in fortran, and i am using Kdevelop. Debugging is done with write(*,*) (most of the time) and idb. I can't wait to switch to C++, so efficient on linux with kdevelop (debugging, documentation,...). On windows this is actually easier. But free does not exist. Visual Fortran or similar works well enough, and are not expensive if you know where to look Nico |
|
March 14, 2007, 07:16 |
Re: fortran debugger
|
#4 |
Guest
Posts: n/a
|
Can you describe what is not nice with idb ? Since it can be run and produce gdb-like output, I thought it could work.
|
|
March 14, 2007, 08:20 |
Re: fortran debugger
|
#5 |
Guest
Posts: n/a
|
I don't know about DDD. But idb does not integrate well into the Eclipse or Kdevelop IDE. (some local variables are accessible, but not the arrays or any variables defined in modules). DDD might be the answer, but i haven't tried it yet.
|
|
March 14, 2007, 08:36 |
Re: fortran debugger
|
#6 |
Guest
Posts: n/a
|
Which idb's output mode did you try ? dbx or gdb ? I read somewhere that dbx, unlike gdb, can manage f90's modules, so maybe it is usable ?
|
|
March 14, 2007, 09:53 |
Re: fortran debugger
|
#7 |
Guest
Posts: n/a
|
idb on its own is working well. (everything is accessible). But it cannot be used (that i have seen) well inside an IDE like kdevelop or eclipse.
|
|
March 14, 2007, 09:59 |
Re: fortran debugger
|
#8 |
Guest
Posts: n/a
|
This "everything is accessible" really means a lot for me after the disappointment of gdb's inexistent support for f90 ! I will try it at soon as possible. Thanks !
|
|
March 14, 2007, 10:16 |
Re: fortran debugger
|
#9 |
Guest
Posts: n/a
|
make sure you try idb -gui.
|
|
March 14, 2007, 10:28 |
Re: fortran debugger
|
#10 |
Guest
Posts: n/a
|
I will try -idb --debugger dbx first
|
|
April 4, 2007, 04:30 |
Nice site
|
#11 |
Guest
Posts: n/a
|
Hello, Your site is great. Regards, Valintino Guxxi
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Recommend graphical/GUI fortran debugger on linux | quarkz | Main CFD Forum | 2 | May 4, 2010 22:42 |
Intel Fortran debugger with mpirun | agg | Main CFD Forum | 2 | March 21, 2007 18:43 |
Visual Fortran compiler and debugger on linux | CFD Student | Main CFD Forum | 3 | February 26, 2007 07:26 |
visual fortran | Monica | Main CFD Forum | 1 | August 28, 2004 21:45 |
Why Favoring Fortran over C/C++? | Zi-Wei Chiou | Main CFD Forum | 35 | September 26, 2001 10:34 |