title: How to debug a cmake/make project in VSCode?
body: <p>I'm making a project and in order to assist in building, I'm using <code>CMake</code>.</p>
  
  <p>However, I notice that I can't debug.</p>
  
  <p>Here's my launch.json:</p>
  
  <pre><code>{
      "version": "0.2.0",
      "configurations": [
          {
              "name": "Debug",
              "type": "gdb",
              "request": "launch",
              "target": "./build/bin/CHIP8",
              "cwd": "${workspaceRoot}",
              "preLaunchTask": "build"
          }
      ]
  }
  </code></pre>
  
  <p>And here's my tasks.json:</p>
  
  <pre><code>{
      "version": "2.0.0",
      "tasks": [
          {
              "label": "build",
              "type": "shell",
              "command": "cd build &amp;&amp; cmake .. &amp;&amp; make"
          }
      ]
  }
  </code></pre>
  
  <p>I can't find anything online to help with this problem, so I'm really not sure where to go from here. VSCode docs has an example to debug where they use g++, but I'm using make --- so I'm not sure how to do it!</p>
  
  <p>Thanks.</p>