title: Could not run debugger for fortran. Visual Studio Code
body: <p>I am trying to debug a fortran file on Visual Studio code(ubuntu 18.04).</p>
  
  <p>I have the following installed extensions</p>
  
  <p><a href="https://i.stack.imgur.com/Ttu1x.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Ttu1x.png" alt="enter image description here"></a></p>
  
  <p>My launch.json file is the following </p>
  
  <pre><code>"version": "0.0.1",
  "configurations": [
      {
          "name": "Fortran Launch (GDB)",
          "type": "cppdbg",
          "request": "launch",
          "targetArchitecture": "x86",
          "program": "${workspaceRoot}/./a.out",
          "miDebuggerPath": "gdb",
          "args": [],
          "stopAtEntry": false,
          "cwd": "${workspaceRoot}",
          "externalConsole": true,
          "preLaunchTask": "gfortran"
      }
  ]
  </code></pre>
  
  <p>since I am using linux, i dont need to give the path for gfortran. Also I tried changing the launch.json a little by changing <code>.exe</code> to linux extensions. I have updated it in the question. However the debugger still doesn't run and gives the following error in the console </p>
  
  <pre><code>and "show warranty" for details.
  This GDB was configured as "x86_64-linux-gnu".
  Type "show configuration" for configuration details.
  For bug reporting instructions, please see:
  &lt;http://www.gnu.org/software/gdb/bugs/&gt;.
  Find the GDB manual and other documentation resources online at:
  &lt;http://www.gnu.org/software/gdb/documentation/&gt;.
  For help, type "help".
  Type "apropos word" to search for commands related to "word".
  =cmd-param-changed,param="pagination",value="off"
  Stopped due to shared library event (no libraries added or removed)
  Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.
  Breakpoint 1, 0x0000555555554a60 in main ()
  [Inferior 1 (process 24472) exited normally]
  The program '/home/m/gSoC/GasSimulator/./a.out' has exited with code 0 (0x00000000).
  </code></pre>