Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29277 Discussions

simple debugger question: stopping program when a variable changes

grtoro
Beginner
617 Views
Sorry if this question is trivial, but here it goes:
I am using CVF 6.6 and I would like the debugger to stop execution when a variable (or a particular array element) changes value. This was possible (though sometimes slow) in old VMS and HPUX debuggers I used in the past.
Can this be done with the CVF debugger?
Thanks,
Gabriel
0 Kudos
2 Replies
greldak
Beginner
617 Views
Yes
You can set conditional breakpoints as below
Edit,Breakpoints
click the right arrow and enter the line for it
Condition
enter your variable or any other expression in the top edit box
0 Kudos
Jugoslav_Dujic
Valued Contributor II
617 Views
Close but not exactly what Gabriel asked -- instead, there's "Data" tab on the same dialog, where a variable/expression can be entered.
Note that the feature is quirky and sometimes can lead to DFDEV slowdown/crashing, but it's quite useful when it works (and it usually does, especially if you don't try "exotic" expressions). (Remove the "breakpoint" as soon as you reach your goal).
Jugoslav
0 Kudos
Reply