title: How do debug header file implemetation (its .cpp) in c++ using GDB
body: <p>I have these 3 file in my program:</p>
  
  <ol>
  <li>sample1.h (method in sample1.cpp are defined here)</li>
  <li>sample1.cpp (all the actual implementations) </li>
  <li>demo.cpp (I am using the methods in sampe1.cpp here, and have included sample1.h)</li>
  </ol>
  
  <p>Now, I am using <strong>GDB</strong> to debug and I know the basic commands like "break lineno." or "break methodname". But, how do I debug the methods written in sample1.cpp?</p>
  
  <p><strong><em>I tried: break "sample1.cpp:mymethod" but it did not work.</em></strong></p>