title: How can I use "watch" GDB?
body: <p>I tried to watch the change of the "int a" by the command "watch a". However, the program does not stop, when it changes to 12. Why?</p>
  
  <pre><code> /* FILE: test.c */
   #include &lt;stdio.h&gt;
   #include &lt;stdlib.h&gt;
  
   int main(int argc, char** argv){
    printf("Hello world\n");
  
    int a = 12;
    a = 10;                                                                                                                                                                      
    return 0; 
   }
  </code></pre>