title: VScode's debugger not working [MacOS - Clang - C]
body: <p>My problem is generated when trying to debug C (the programming language) in vscode using the latest MacOS version with command line tools installed.
  The error appears when the external terminal is launched in order to debug. I'm using the clang compiler with the following configuration files for the debugger in vscode:</p>
  <p><strong>launch.json</strong>:</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;clang - Build and debug active file&quot;,
              &quot;type&quot;: &quot;cppdbg&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;program&quot;: &quot;${fileDirname}/${fileBasenameNoExtension}&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;lldb&quot;,
              &quot;preLaunchTask&quot;: &quot;C/C++: clang build active file&quot;
          }
      ]
  }
  </code></pre>
  <p><strong>tasks.json</strong>:</p>
  <pre><code>{
  &quot;tasks&quot;: [
      {
          &quot;label&quot;: &quot;Open Terminal&quot;,
          &quot;type&quot;: &quot;shell&quot;,
          &quot;command&quot;: &quot;osascript -e 'tell application \&quot;Terminal\&quot;\ndo script \&quot;echo hello\&quot;\nend tell'&quot;,
          &quot;problemMatcher&quot;: []
      },
      {
          &quot;type&quot;: &quot;cppbuild&quot;,
          &quot;label&quot;: &quot;C/C++: clang build active file&quot;,
          &quot;command&quot;: &quot;/usr/bin/clang&quot;,
          &quot;args&quot;: [
              &quot;-g&quot;,
              &quot;${file}&quot;,
              &quot;-o&quot;,
              &quot;${fileDirname}/${fileBasenameNoExtension}&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;Task generated by Debugger.&quot;
      }
  ],
  &quot;version&quot;: &quot;2.0.0&quot;
  </code></pre>
  <p>}</p>
  <p><strong>The error that appears in the terminal</strong>:</p>
  <p>username@Martins-MBP ~ %  cd ''; env 'USER=Martin' '__CFBundleIdentifier=com.microsoft.VSCode' 'COMMAND_MODE=unix2003' 'LOGNAME=Martin' 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' 'SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.ABVM6fu0pS/Listeners' 'SHELL=/bin/zsh' 'HOME=/Users/Martin' '__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x2' 'TMPDIR=/var/folders/zb/b62pl9hd43n4chv3k7jg5cxr0000gn/T/' 'XPC_SERVICE_NAME=application.com.microsoft.VSCode.142509.142515' 'XPC_FLAGS=0x0' 'ORIGINAL_XDG_CURRENT_DESKTOP=undefined' 'SHLVL=0' 'PWD=/' 'OLDPWD=/' '_=/Applications/Visual Studio Code.app/Contents/MacOS/Electron' 'APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL=true' '/bin/sh' '/var/folders/zb/b62pl9hd43n4chv3k7jg5cxr0000gn/T/Microsoft-MIEngine-Cmd-ukaihz0n.2gz'</p>