title: Debugging a JavaScript code run through ngrok
body: <p>I'm running a JavaScript code through a ngrok tunnel in the Windows Power Shell, as I'm using this code as webhook in Dialogflow.</p>
  <p>I would like to debug the code now, as I want to see how it works step by step, receiving and processing the information that gets from Dialogflow.</p>
  <p>However, when I use the debugging option of my code editor (Visual Studio Code in my case), the only thing it does is to open a window in the browser showing that the connection is successful, but it gets frozen there and never hits the breakpoint.</p>
  <p>Is there any way to debug the code, so maybe I can enter information in Dialogflow and see how the JavaScript code receives it and processes it step by step?</p>
  <p>Sorry not to post any code, but my problem is not in the code itself.</p>
  <p>Thanks in advance!</p>
  <p>EDIT:</p>
  <p>I have the following launch.json file:</p>
  <pre><code>{&quot;version&quot;: &quot;0.2.0&quot;,
  &quot;configurations&quot;: [
      {
          &quot;type&quot;: &quot;chrome&quot;,
          &quot;request&quot;: &quot;launch&quot;,
          &quot;name&quot;: &quot;Launch Chrome against localhost&quot;,
          &quot;url&quot;: &quot;http://localhost:8080&quot;,
          &quot;webRoot&quot;: &quot;${workspaceFolder}&quot;
      }]}
  </code></pre>
  <p>I don't get any error message when I start debugging. Just after pressing F5, my browser (Chrome) opens and shows me that the connection is successful:</p>
  <p><a href="https://i.stack.imgur.com/tn8Nr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tn8Nr.png" alt="enter image description here" /></a></p>
  <p>So I guess the tunnel is alright, but I don't get any console output either. It is like the VSCode just opens the browser and forgets about the debugging.</p>