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

how to use debugger to sense and break when a variable changes value?

anthonyrichards
New Contributor III
1,497 Views

How can you set up the debugger to sense when a variable changes value (I am trying to locate overwriting of memory)?

0 Kudos
1 Solution
Les_Neilson
Valued Contributor II
1,497 Views
Quoting - anthonyrichards

How can you set up the debugger to sense when a variable changes value (I am trying to locate overwriting of memory)?


(1) in a watch window find the address of the variable with loc(variable-name) (right click to get hex display of address)

(2) From the menus Debug->New Breakpoint->New Data Breakpoint and put in the address of the variable.

Les

View solution in original post

0 Kudos
2 Replies
Les_Neilson
Valued Contributor II
1,498 Views
Quoting - anthonyrichards

How can you set up the debugger to sense when a variable changes value (I am trying to locate overwriting of memory)?


(1) in a watch window find the address of the variable with loc(variable-name) (right click to get hex display of address)

(2) From the menus Debug->New Breakpoint->New Data Breakpoint and put in the address of the variable.

Les
0 Kudos
anthonyrichards
New Contributor III
1,497 Views
Quoting - Les Neilson

(1) in a watch window find the address of the variable with loc(variable-name) (right click to get hex display of address)

(2) From the menus Debug->New Breakpoint->New Data Breakpoint and put in the address of the variable.

Les

Thanks, Les.
0 Kudos
Reply