Eclipse+ Photran + Fortan + Debugger don't work [message #1411557] |
Sat, 23 August 2014 18:02 |
Eclipse Guest Messages: 93 Registered: February 2013 Location: Vienna |
Member |
|
|
I have
Win 7
Eclipse Luna 4.4.0 Build 20140612-0600
Photran 8.2.1
Cygwin Devel Packages gfortran + make (used)
MinGW with g95 (installed but not used because no make.exe)
So I downloaded the Hello World example, changed it a bit
program HelloW
implicit none
integer i
i=1
print *,i
print *, "Hello MPI World"
i=i+1
print *,i
i=1000
print *,i
end program
1) So problem number one. The default debuggers (Run->Debug Configuration->Debugger) gdbserver and minGW gbd don't work, because they need .gdbinit. I created an empty file .gdbinit, but it doesn't help. I could find no info of what must be inside.
Next problem:
2) As debugger I chose gdb/mi. It seems to work without .gdbinit. I set a break point in front of integer i line. I start the debugger but it looks like it runs till the end of the program and suspends there (the last line end program is lighted green). Now if I press F5 it starts to move in the program step by step from the very beginning, but it needs 3 button presses to do 1 line. It first jumps forward, nothing happens, then it jumps back, and on the 3rd press it jumps forward again and execute the line (e.g. the variable i changes). What the hell is that?
Are there any users alive, who debugged a Fortran program under Eclipse?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05077 seconds