Watchpoint is a point at which program executed via a debugger stops to let the programmer peek into memory and call stack or enter step by step execution mode.
Questions tagged [watchpoint]
98 questions
0
votes
2 answers
Watchpoint on memory writes for a local static?
I want to set a watchpoint on the static local s_db:
static sqlite3*& GetSqliteDb()
{
static std::once_flag flag;
static sqlite3* s_db = NULL;
std::call_once(flag, []() {
s_db = ...
...
});
}
I've tried setting a…

jww
- 97,681
- 90
- 411
- 885
0
votes
1 answer
How to watch fixed memory free using gdb because of corruption
I have an array of pointers which holds the interface details.
For example
tIfInfoStruct *gapIfTable[16];
memory has been allocated for the pointer while interface creation.
For example
gapIfTable[14] = 0x39cc345.
After some sequence of…

saravanan_1987
- 11
- 1
0
votes
1 answer
Finding the first write to a variable in LLDB
I'm debugging a large program using LLDB and there's one bool variable that's used everywhere, generally referenced as an extern. I've been debugging it for a while and, no matter where I set my breakpoints, the value is always true. I'd like to…

benwad
- 6,414
- 10
- 59
- 93
0
votes
2 answers
Watching a variable in an anonymous function in JavaScript
I want to determine when a particular variable is changed. I have had great success using this code to watch any property of any object that I can access, but can it be used for a variable declared like this?:
$( // line 1
…

Steven Lu
- 41,389
- 58
- 210
- 364
0
votes
0 answers
Cocos2d CCAnimate gives EXC_BAD_ACCESS when all variables are still alive
I'm making a tank game, and I've got problems with the Cocos2d CCAnimate - more specifically my CCAnimation variables are spontaneously losing their data!
They get used in the state changer of tank object…

CarlosTheJackal
- 220
- 1
- 14
0
votes
3 answers
Eclipse : How to put break points inside a class (outside the method )
import java.util.Properties;
public class Pavan {
Properties props = new Properties();
(X) String message = props.getProperty("message");
String name = message;
public static void main(String args[]) {
Pavan k = new Pavan();
…

Pawan
- 31,545
- 102
- 256
- 434
-1
votes
1 answer
can't set watch-point to local vector variable via gdb
Here is the part of code where I want to set it :
void *sync(void *ptr) {
vector gen = generate_sygnal();
I build my program with debug flag and Here is what I do in gdb:
(gdb) break daemon.cxx:sync
break daemon.cxx:sync
Breakpoint 1 at…

cnd
- 32,616
- 62
- 183
- 313
-4
votes
1 answer
C - make watchpoint with assembly
Like what gdb do with watchpoint, I want to put a watchpoint programmatically in C. I heard that is possible with assembly. In the current time I know only for breakpoints like this instruction :
int i=0;
while(1){
i++;
if(i >= 10)
…

wolfgunner
- 119
- 2
- 13