title: Cannot Install Delve Go Debugger on Mac
body: <p>I am trying to follow along with the following YouTube <a href="https://www.youtube.com/watch?v=qFf2PRSfBlQ" rel="noreferrer">video</a> on getting started with Go Debugging.</p>
  
  <p>It recommends following the Delve installation instructions on the official Delve github repo. For Mac users, they are <a href="https://github.com/go-delve/delve/blob/master/Documentation/installation/osx/install.md" rel="noreferrer">as follows</a>:</p>
  
  <p>Making sure the toolchain is in place</p>
  
  <pre><code>xcode-select --install
  xcode-select: error: command line tools are already installed, use "Software Update" to install updates
  </code></pre>
  
  <p>Using "go get" to install Delve</p>
  
  <pre><code>go get -u github.com/go-delve/delve/cmd/dlv
  </code></pre>
  
  <p>Making sure developer mode is enabled in Xcode</p>
  
  <pre><code>sudo /usr/sbin/DevToolsSecurity -enable
  Developer mode is already enabled.
  </code></pre>
  
  <p>To check that the installation has been completed correctly, I tried running the following in my Go project directlry:</p>
  
  <pre><code>dlv debug
  zsh: command not found: dlv
  </code></pre>
  
  <p>The author of the video tutorial recommends updating GOPATH and PATH variables in the <code>~/.bash_profile</code> file in the case that the command is not recognized. I did so so by adding:</p>
  
  <pre><code>export GOPATH=/Users/&lt;user_name&gt;/go/src/
  export PATH=$PATH:/Users/&lt;user_name/go/src/my_project
  </code></pre>
  
  <p>However, even after doing so, I get the same result when trying to run the debugger:</p>
  
  <pre><code>dlv debug
  zsh: command not found: dlv
  </code></pre>
  
  <p>Even if I change the shell for the default zsh to bash, using <code>exec bash</code>, I get the same result.</p>