How to set up debugging in GoLand?

前端 未结 6 620
北荒
北荒 2021-02-07 04:20

I am trying out GoLand and hear that the debugger is supposedly awesome, but I can’t find any documentation explaining how to set it up (GoLand is in preview stage, so that’s no

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-07 05:06

    GoLand will not enable the debug action (although run is available) if your code does not reside inside src. There is no warning about this, so it might be really a pain to solve this.

    Additionally, depending on your project’s structure it might be possible, that debugging is still not working. In that case, it might help to remove all run configurations and create a new one. There’s is a bug report about this behavior.

    PS: Although the OP mentions the first part in an edit of the question, but it think it’s worth mentioning in an answer.

提交回复
热议问题