Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [photran] Re: how to debug

Hi again Dong,

 

I was thinking about your problem some more and I think I was not taking your problem statement as literally as you meant it maybe.  Are you saying the code you cannot see in the debugger resides in a MODULE definition file?  If so, I would say the problem is due to general limitations of using gdb as a Fortran debugger.  If you use the Intel debugger, you will be able to step into Intel Fortran generated code which is contained in a MODULE.  I see you are using version 11.0 of Intel Fortran.  There are a couple of choices for you.  Intel Fortran 11.0 comes with a new standalone GUI version of IDB.  You could use it if you don’t mind building in Eclipse, but debugging in another tool.  You invoke the new gui version with the “idb” command assuming you initialized your environment for using the Intel debugger.  Intel Fortran 11.0 also provides the command line version of the debugger which you can invoke with the “idbc” command, again, assuming you have initialized your environment for using the Intel debugger.  A third alternative you could try is to modify your debug launch configuration in Photran so that it invokes idbc instead of gdb.  This is not something that is officially supported by Intel, but when I try it with an example similar to what I think your situation is, it works o.k.  Again, this is not supported by Intel so if you run into other problems in this configuration, there would be no help.  If it works well enough for you though, it let’s you do everything within Eclipse/Photran.  If you want to try it, initialize your environment to use the Intel debugger before you start Eclipse, start Eclipse, open your debug configuration and choose the debugger tab.  Then in the “Debugger Options” area, “Main” tab, change “GDB debugger” from “gdb” to “idbc”.

 

If this addresses your problem, that’s good and I don’t need to see your project any more.  If not, I will still need to see the project to go further.

 

Hope this helps,

 

Bill

 


From: photran-bounces@xxxxxxxxxxx [mailto:photran-bounces@xxxxxxxxxxx] On Behalf Of Dong Li
Sent: Saturday, February 28, 2009 5:18 AM
To: photran@xxxxxxxxxxx
Subject: [photran] Re: how to debug

 

Hi Bill,

I can debug the main program, but I can't go into the subroutines contained in other modules. It said "No source available for "...() " ". Why couldn't eclipse find the code file?

Thanks!

DONG Li


Back to the top