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

simple debugger question: stopping program when a variable changes

grtoro
初學者
784 檢視
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 積分
2 回應
greldak
初學者
784 檢視
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
Jugoslav_Dujic
傑出貢獻者 II
784 檢視
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
回覆