mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 12:47:22 +08:00
committed by
GitHub
parent
4303ae45a8
commit
e11e8858ea
@ -699,8 +699,9 @@ Set watchpoint.
|
||||
The memory location is specified with the same expression language used by 'print', for example:
|
||||
|
||||
watch v
|
||||
watch -w *(*int)(0x1400007c018)
|
||||
|
||||
will watch the address of variable 'v'.
|
||||
will watch the address of variable 'v' and writes to an int at addr '0x1400007c018'.
|
||||
|
||||
Note that writes that do not change the value of the watched memory address might not be reported.
|
||||
|
||||
|
||||
@ -144,8 +144,9 @@ See also: "help on", "help cond" and "help clear"`},
|
||||
The memory location is specified with the same expression language used by 'print', for example:
|
||||
|
||||
watch v
|
||||
watch -w *(*int)(0x1400007c018)
|
||||
|
||||
will watch the address of variable 'v'.
|
||||
will watch the address of variable 'v' and writes to an int at addr '0x1400007c018'.
|
||||
|
||||
Note that writes that do not change the value of the watched memory address might not be reported.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user