How to set up gdb watchpoints in a program consisting of many files in C++? -


I am trying to establish a clock to monitor variables in a package containing many C ++ files.

There are several files

abc.cpp qwe.cpp .. xyz.cpp and so on

I have a variable 'temporary' in some function qwerty () Want to monitor the file abc.cpp How do I set the clock's position?

I tried

clock abc.cpp :: temp watch abc.cpp: temp clock temp

but I do not see errors' abc.cpp: : Temp ',' abc.cpp: temp ',' temp 'Not in the current context, a notification clock point also tells me that no watchpoints are set. Note that I can successfully set a breakpoint for the same variable

I always set breakpoint in the function When I press it, then set up the alert point so that I am in context, then remove the breakpoint as much as possible.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -