title: Cannot set breakpoint in golang packages in Intellij 2020.1
body: <p>I have a simple web app which has cmd/ and pkg/ folders. As a convention, I'm importing packages in *.go files in cmd folder. Setting breakpoints work fine in any file in cmd but it doesn't work in packages. </p>
  
  <p>Error message is:</p>
  
  <pre><code>could not find statement at &lt;path_to_file&gt;:&lt;line_number&gt;, please use a line with a statement
  </code></pre>
  
  <p>Project structure I'm using is similar to this in simplified form:</p>
  
  <pre><code>project_root:
  - cmd/
      main.go 
  - pkg/
      app.go // I set a breakpoint to a function here L:156. it's being called at main.go
      ...
  - api/
  - config/
  ...
  
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/uXrmi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uXrmi.png" alt="enter image description here"></a></p>
  
  <p>my build flag has <code>-gcflags "all=-N -l"</code></p>
  
  <p>Similar issue has been discussed here in the past: <a href="https://stackoverflow.com/questions/43851853/intellij-2017-1-2-golang-debug-does-not-work-on-breakpoints-in-packages">IntelliJ 2017.1.2 GOLANG debug does not work on breakpoints in packages</a></p>
  
  <p>Edit:</p>
  
  <ul>
  <li>added project structure</li>
  <li>added screenshot of the line with breakpoint</li>
  </ul>