title: How can I solve troubles while debugging c code?
body: <p>I've been trying the whole day to debug my code using vscode. I set up the lauch.json but It's not working.
  I have 3 breakpoints and I should be asked to input 3 floats but when in the Terminal it didn't prompt. Here is my code which it works fine without debugging.</p>
  <pre><code>#include &lt;stdio.h&gt;
  int main(void)
  {
      float a, b, c, sum;
      printf(&quot;Input three floats:&quot;);
      scanf(&quot;%f%f%f&quot;, &amp;a, &amp;b,&amp;c); // %f real en coma flotante
      printf(&quot;a = %f , b = %f, c = %f&quot;, a, b,c);
      sum = a + b + c;
      printf(&quot;\nsum = %f\n\n&quot;,sum); //%f conversion a punto flotante con signo
      return 0;
  }
  </code></pre>
  <p>Here is the lauch.json setup</p>
  <pre><code>&quot;version&quot;: &quot;0.2.0&quot;,
      &quot;configurations&quot;: [
      {
          &quot;name&quot;: &quot;(gdb) Iniciar&quot;,
          &quot;type&quot;: &quot;cppdbg&quot;,
          &quot;request&quot;: &quot;launch&quot;,
          //&quot;program&quot;: &quot;${fileDirname}\\${fileBasenameNoExtension}.exe&quot;,
          &quot;program&quot;: &quot;${workspaceFolder}/sum_3f.exe&quot;,
          &quot;args&quot;: [],
          &quot;stopAtEntry&quot;: false,
          &quot;cwd&quot;: &quot;C:\\MinGW\\bin&quot;,
          &quot;environment&quot;: [],
          &quot;externalConsole&quot;: false,
          &quot;MIMode&quot;: &quot;gdb&quot;,
          &quot;miDebuggerPath&quot;: &quot;C:\\MinGW\\bin\\gdb.exe&quot;,
          &quot;setupCommands&quot;: [
              {
                  &quot;description&quot;: &quot;Habilitar la impresión con sangría para gdb&quot;,
                  &quot;text&quot;: &quot;-enable-pretty-printing&quot;,
                  &quot;ignoreFailures&quot;: true
              },
              {
                  &quot;description&quot;:  &quot;Establecer tipo de desensamblado en Intel&quot;,
                  &quot;text&quot;: &quot;-gdb-set disassembly-flavor intel&quot;,
                  &quot;ignoreFailures&quot;: true
              }
          ]
      }
  ]
  </code></pre>
  <p>I tried to remove &quot;text&quot;: &quot;-enable-pretty-printing&quot;, cause I read that it could cause trouble but It's still not working.</p>
  <p>Here goes 2 images. I'm sorry but I'm not allowed yet to upload images so this is why there are these links:</p>
  <p><img src="https://i.stack.imgur.com/nC1D9.png" alt="[code and terminal image]" />
  <img src="https://i.stack.imgur.com/QWsq9.png" alt="[debug console image]" /></p>