title: How exactly do I use Metals and VS Code Debugger?
body: <p><a href="https://scalameta.org/metals/blog/2020/01/10/cobalt.html#debugging" rel="noreferrer">Metals announced</a> that &quot;It is now possible to run and test directly from VS Code using the new &quot;Run&quot;, &quot;Test&quot;, &quot;Debug&quot; and &quot;Debug test&quot; buttons.&quot; There is a nice gif showing what it can do, and I don't know how to get to that point.</p>
  <p>I tried to launch VS Code debugger with the following configurations in <code>launch.json</code></p>
  <pre><code>{
      // Use IntelliSense to learn about possible attributes.
      // Hover to view descriptions of existing attributes.
      // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
      &quot;version&quot;: &quot;0.2.0&quot;,
      &quot;configurations&quot;: [
         {
             &quot;type&quot;: &quot;scala&quot;,
             &quot;request&quot;: &quot;launch&quot;,
             &quot;name&quot;: &quot;Untitled&quot;,
             &quot;mainClass&quot;: &quot;com.playZip.Unzip&quot;,
             &quot;args&quot;: [],
             &quot;jvmOptions&quot;: []
         }
      ]
  }
  </code></pre>
  <p>and got this error message:</p>
  <pre><code>Couldn't find a debug adapter descriptor for debug type 'scala' (extension might have failed to activate)
  </code></pre>
  <p>Somebody on <a href="https://gitter.im/scalameta/metals" rel="noreferrer">Gitter scalameta/metals</a> had this problem and the answer was that he needs Bloop to support utest and I think mine does because there's a file <code>.bloop/play-zip-test.json</code> in my sbt project, but I'm not 100% if my Bloop supports utest and what to do if it doesn't. I tried running <code>bloop utest</code> and it failed because I don't have Bloop CLI installed. I have Bloop that comes with Metals.</p>