title: How to run tests and debug Google Test project in VS Code?
body: <p>I want to run the sample tests and debug the <a href="https://github.com/google/googletest/tree/master/googletest" rel="noreferrer">Google Test project</a>. I am using VS Code on Ubuntu 16.04 LTS.</p>
  <ul>
  <li>I cloned the project locally at <code>/home/user/Desktop/projects/cpp/googletest</code>,</li>
  <li>created a new directory called <code>mybuild</code> at <code>/home/user/Desktop/projects/cpp/mybuild</code>.</li>
  <li>According to the README instructions here: <a href="https://github.com/google/googletest/tree/master/googletest" rel="noreferrer">https://github.com/google/googletest/tree/master/googletest</a> I used the command, <code>cmake -Dgtest_build_samples=ON /home/user/Desktop/projects/cpp/googletest</code> to build the project and this generated a bunch of files and apparently the build succeeded.</li>
  </ul>
  <p>Now, I have 2 problems:</p>
  <ol>
  <li><p>How do I run the sample tests for the project?</p>
  </li>
  <li><p>How do I debug these test and the source code for the project?</p>
  </li>
  </ol>