CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

fortran debugger

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2007, 08:08
Default fortran debugger
  #1
John Deas
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.

  Reply With Quote

Old   March 13, 2007, 09:46
Default Re: fortran debugger
  #2
john deas
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.
  Reply With Quote

Old   March 14, 2007, 06:09
Default Re: fortran debugger
  #3
nico
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

  Reply With Quote

Old   March 14, 2007, 06:16
Default Re: fortran debugger
  #4
john deas
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.
  Reply With Quote

Old   March 14, 2007, 07:20
Default Re: fortran debugger
  #5
nico
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.

  Reply With Quote

Old   March 14, 2007, 07:36
Default Re: fortran debugger
  #6
john deas
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 ?
  Reply With Quote

Old   March 14, 2007, 08:53
Default Re: fortran debugger
  #7
nico
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.
  Reply With Quote

Old   March 14, 2007, 08:59
Default Re: fortran debugger
  #8
john deas
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 !
  Reply With Quote

Old   March 14, 2007, 09:16
Default Re: fortran debugger
  #9
nico
Guest
 
Posts: n/a
make sure you try idb -gui.
  Reply With Quote

Old   March 14, 2007, 09:28
Default Re: fortran debugger
  #10
john deas
Guest
 
Posts: n/a
I will try -idb --debugger dbx first
  Reply With Quote

Old   April 4, 2007, 03:30
Default Nice site
  #11
Valintino
Guest
 
Posts: n/a
Hello, Your site is great. Regards, Valintino Guxxi
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recommend graphical/GUI fortran debugger on linux quarkz Main CFD Forum 2 May 4, 2010 21:42
Intel Fortran debugger with mpirun agg Main CFD Forum 2 March 21, 2007 17:43
Visual Fortran compiler and debugger on linux CFD Student Main CFD Forum 3 February 26, 2007 06:26
visual fortran Monica Main CFD Forum 1 August 28, 2004 20:45
Why Favoring Fortran over C/C++? Zi-Wei Chiou Main CFD Forum 35 September 26, 2001 09:34


All times are GMT -4. The time now is 21:07.