title: How to debug with visual studio code a mocha test in javascript?
body: <p>If you are using node, it is easy to debug:</p>
  <pre><code>//.vscode/launch.json
  &quot;configurations&quot;: [
      {
          &quot;name&quot;: &quot;Launch&quot;,
          &quot;type&quot;: &quot;node&quot;,
          &quot;request&quot;: &quot;launch&quot;,
          ...
  </code></pre>
  <p>But if I am using mocha tests, how can I debug it?</p>
  <p>I have tried to use:</p>
  <pre><code>&quot;configurations&quot;: [
      {
          &quot;name&quot;: &quot;Launch&quot;,
          &quot;type&quot;: &quot;mocha&quot;,
          &quot;request&quot;: &quot;launch&quot;,
  </code></pre>
  <p>But it is not valid. Does anyone have any idea?</p>