title: How to run/debug a beego app using Gogland (go language)
body: <p>Im using <a href="https://www.jetbrains.com/go/" rel="nofollow noreferrer">Gogland</a> (IDE from JetBrains. Version 1.0 Preview/EAP Feb, 10 2017) to create a <a href="https://beego.me/" rel="nofollow noreferrer">Beego</a>  web app.
    I can run it from command line with: </p>
  
  <blockquote>
    <p>bee run</p>
  </blockquote>
  
  <p>and everything works.</p>
  
  <p>However if I run it from the IDE with the following configuration
  <a href="https://i.stack.imgur.com/w7vOA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w7vOA.png" alt="enter image description here"></a></p>
  
  <p>when I go to localhost:8080 it says it can not find the template file in path:</p>
  
  <p><a href="https://beego.me/" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/foquV.png" alt="enter image description here"></a></p>
  
  <p>I thought it was related to GOPATH, but then I realized that Gogland IDE is probably running </p>
  
  <blockquote>
    <p>go run main.go</p>
  </blockquote>
  
  <p>instead of</p>
  
  <blockquote>
    <p>bee go</p>
  </blockquote>
  
  <p>and when I checked runing </p>
  
  <blockquote>
    <p>go run main.go</p>
  </blockquote>
  
  <p>from the shell, I got the same issue: cant find the template.</p>
  
  <hr>
  
  <p>I even tried to run the 'bee' command from the IDE. I partially succeed. With this configuration:
  <a href="https://i.stack.imgur.com/SyiTm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SyiTm.png" alt="enter image description here"></a>
  I can run it from the IDE, but the debugger doesn't stop in any breakpoint. IE: I can only run (but not debug) it, from Gogland.</p>
  
  <p>So my question is how to make gogland IDE debug a beego project</p>