Home > Archive > Fortran > September 2006 > loop debugging Compag Visual Fortran Compiler
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
loop debugging Compag Visual Fortran Compiler
|
|
|
| Hi,
I want to check the value of a variable in a loop using the debugging
facility in Compaq Visual Fortran 6.6.0. Suppose I have a simple loop
as follows:
do i=1,1000
b=f(xi)
enddo
I would like to see the value of b for i=500 (f(x) is defined). Is
there a way in Compaq Visual Fortran (in the debugger) to watch the
value of b without step-by-step debugging (i=1,2,3, ..., 500). I use
the "step to cursor debug" but end up with knocking the key-board 500
times (what a tedious task) to reach the index=500 :(
Please don't tell me to add a line if(i.eq.500) print*, 'b=',b inside
the loop. I want to explore the features in Compaq Visual Fortran
Debugger.
Kind help is appreciated.
Irfan
| |
| Jugoslav Dujic 2006-09-26, 4:01 am |
| kis wrote:
| Hi,
|
| I want to check the value of a variable in a loop using the debugging
| facility in Compaq Visual Fortran 6.6.0. Suppose I have a simple loop
| as follows:
|
| do i=1,1000
| b=f(xi)
| enddo
|
| I would like to see the value of b for i=500 (f(x) is defined). Is
| there a way in Compaq Visual Fortran (in the debugger) to watch the
| value of b without step-by-step debugging (i=1,2,3, ..., 500). I use
| the "step to cursor debug" but end up with knocking the key-board 500
| times (what a tedious task) to reach the index=500 :(
|
|
| Please don't tell me to add a line if(i.eq.500) print*, 'b=',b inside
| the loop. I want to explore the features in Compaq Visual Fortran
| Debugger.
1) Place a breakpoint on the desired line
2) Hit Ctrl+B (debug/breakpoints)
3) Select the newly created breakpoint, and in the "expression" edit box
type
i.eq.500 or
i==500
(Not directly related, but you can also check out the "Data" tab in that
dialog)
Note that the feature is a bit quirky, as the breakpoint often gets
disabled in subsequent debug sessions (you have to re-enable the breakpoint
in the same dialog or repeat the procedure).
--
Jugoslav
___________
www.xeffort.com
Please reply to the newsgroup.
You can find my real e-mail on my home page above.
| |
|
| Thanks a lot. It works.
Irfan
Jugoslav Dujic wrote:
> kis wrote:
> | Hi,
> |
> | I want to check the value of a variable in a loop using the debugging
> | facility in Compaq Visual Fortran 6.6.0. Suppose I have a simple loop
> | as follows:
> |
> | do i=1,1000
> | b=f(xi)
> | enddo
> |
> | I would like to see the value of b for i=500 (f(x) is defined). Is
> | there a way in Compaq Visual Fortran (in the debugger) to watch the
> | value of b without step-by-step debugging (i=1,2,3, ..., 500). I use
> | the "step to cursor debug" but end up with knocking the key-board 500
> | times (what a tedious task) to reach the index=500 :(
> |
> |
> | Please don't tell me to add a line if(i.eq.500) print*, 'b=',b inside
> | the loop. I want to explore the features in Compaq Visual Fortran
> | Debugger.
>
> 1) Place a breakpoint on the desired line
> 2) Hit Ctrl+B (debug/breakpoints)
> 3) Select the newly created breakpoint, and in the "expression" edit box
> type
> i.eq.500 or
> i==500
>
> (Not directly related, but you can also check out the "Data" tab in that
> dialog)
>
> Note that the feature is a bit quirky, as the breakpoint often gets
> disabled in subsequent debug sessions (you have to re-enable the breakpoint
> in the same dialog or repeat the procedure).
>
> --
> Jugoslav
> ___________
> www.xeffort.com
>
> Please reply to the newsgroup.
> You can find my real e-mail on my home page above.
|
|
|
|
|