title: Not able to debug my c++ code in visual studio code
body: <p>I don't what happened to my vscode all of a sudden I am not able to debug files although I am to run my CPP program but not able to debug please help me I spend 2-3 hours continuously trying to fix my debugger</p>
  <p>my program is running fine and compiler is creating a exe file as shown below
  <a href="https://i.stack.imgur.com/SBSNy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SBSNy.png" alt="enter image description here" /></a></p>
  <p>when I hit the debug button this image appears
  <a href="https://i.stack.imgur.com/xHYA8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xHYA8.png" alt="enter image description here" /></a></p>
  <p>and then it stuck on this screen
  <a href="https://i.stack.imgur.com/MVYdv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MVYdv.png" alt="enter image description here" /></a></p>
  <p>when I press any kind of key it exits and the normal terminal window appears
  <a href="https://i.stack.imgur.com/FeSFR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FeSFR.png" alt="enter image description here" /></a></p>
  <p>it is just like it is trying to open the external terminal but not able to open it some how this is what i think spending a whole day solving this problem</p>
  <p>Lauch.json file</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;name&quot;: &quot;g++.exe - Build and debug active file&quot;,
              &quot;type&quot;: &quot;cppdbg&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;program&quot;: &quot;${fileDirname}\\${fileBasenameNoExtension}.exe&quot;,
              &quot;args&quot;: [],
              &quot;stopAtEntry&quot;: false,
              &quot;cwd&quot;: &quot;${fileDirname}&quot;,
              &quot;environment&quot;: [],
              &quot;externalConsole&quot;: true,
              &quot;MIMode&quot;: &quot;gdb&quot;,
              &quot;miDebuggerPath&quot;: &quot;C:\\MinGW\\bin\\gdb.exe&quot;,
              &quot;setupCommands&quot;: [
                  {
                      &quot;description&quot;: &quot;Enable pretty-printing for gdb&quot;,
                      &quot;text&quot;: &quot;-enable-pretty-printing&quot;,
                      &quot;ignoreFailures&quot;: true
                  }
              ],
              &quot;preLaunchTask&quot;: &quot;C/C++: g++.exe build active file&quot;
          }
      ]
  }
  </code></pre>
  <p>Task.json</p>
  <pre><code>{
      &quot;version&quot;: &quot;2.0.0&quot;,
      &quot;tasks&quot;: [
          {
              &quot;type&quot;: &quot;cppbuild&quot;,
              &quot;label&quot;: &quot;C/C++: g++.exe build active file&quot;,
              &quot;command&quot;: &quot;C:\\MinGW\\bin\\g++.exe&quot;,
              &quot;args&quot;: [
                  &quot;-g&quot;,
                  &quot;${file}&quot;,
                  &quot;-o&quot;,
                  &quot;${fileDirname}\\${fileBasenameNoExtension}.exe&quot;
              ],
              &quot;options&quot;: {
                  &quot;cwd&quot;: &quot;${fileDirname}&quot;
              },
              &quot;problemMatcher&quot;: [
                  &quot;$gcc&quot;
              ],
              &quot;group&quot;: {
                  &quot;kind&quot;: &quot;build&quot;,
                  &quot;isDefault&quot;: true
              },
              &quot;detail&quot;: &quot;compiler: C:\\MinGW\\bin\\g++.exe&quot;
          }
      ]
  }
  </code></pre>