stop a debugger when a global variable gets modified in c/c++

  • Thread starter call_me_anything
  • Start date
C

call_me_anything

Hi,

How do I stop the debugger (ddd or even gdb will do) when a global
variable (or a static variable in a function) gets modified ?
Adding a watch on the variable only tells that the variable has
changed but not how.
 
I

Ivan Vecerina

: How do I stop the debugger (ddd or even gdb will do) when a global
: variable (or a static variable in a function) gets modified ?
: Adding a watch on the variable only tells that the variable has
: changed but not how.
This is debugger-specific, and does not rely on any language support.
Please ask in a debugger- or platform-specific forum.
 
K

Kai-Uwe Bux

call_me_anything said:
I mentioned ddd or gdb

Even though you did not quote any context, what you wrote here is enough to
determine that your problem is off-topic in this group. You should take the
question to a forum where ddd or gdb are topical. Please see the FAQ for
suggestions.


Best

Kai-Uwe Bux
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,201
Messages
2,571,047
Members
47,646
Latest member
xayaci5906

Latest Threads

Top