Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-user] Photran debug

Hello, 

I found a very strange case :
when i is global variable
  1. module m  
  2. ...  
  3. integer i  
  4. ...  
  5. subroutine sb...  
  6. ...  
  7.     DO i=1,n  
  8.         print *, i  
  9.         some_array(i) =  ...  
  10.     END DO  
  11. ...  
  12. end subroutine sb  
  13. ...  
  14. end module  
the function 'print' will print the correct values, while in Variables or _expression_ windows of Eclipse i=16843009
it means that the next breakpoint step the index i will be out of the range, and breakpoint become unresolved

if I declare the variable i as a local one the breakpoint is skipped too

Do you know what is the reason ?

Thanks


Back to the top