title: visual studio code debug C request timeout
body: <p>I am testing the debug function of VS code.
  Here is my test code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int d=100;
  int x=200;
  int main() 
  {  
      printf("d=%d,x=%d\n",d,x);
      return 0;
  }
  </code></pre>
  
  <p>Here is my launch.json in .vscode:</p>
  
  <pre><code>        {
          "name": "(gdb) Launch",
          "type": "cppdbg",
          "request": "launch",
          "program": "${workspaceFolder}/main",
          "args": [],
          "stopAtEntry": false,
          "cwd": "${workspaceFolder}",
          "environment": [],
          "externalConsole": true,
          "MIMode": "gdb",
          "setupCommands": [
              {
                  "description": "Enable pretty-printing for gdb",
                  "text": "-enable-pretty-printing",
                  "ignoreFailures": true
              }
          ]
    }
  </code></pre>
  
  <p>I pressed F5 and waited for a really long time, but it didn't respond and
  stay on this state:
  <a href="https://i.stack.imgur.com/bB8Vo.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>And after a long time, a dialog box will show up saying "Request time out".</p>
  
  <p>The debug function worked pretty work on my machine before. But I don't know why it doesn't work now.
  So anyone tell me what's the problem here?</p>
  
  <p>PS: I have installed the C/C++ extension and opened the "-g" flag when compiling it.</p>