How to set up debugging in GoLand?

前端 未结 6 621
北荒
北荒 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 04:53

    On version 2019.1.1 there's no more Go Application. Use Go Build instead. Here I am debugging a single script file, but if you have a server app or smth, just point to the main app file:

    Notice that in the Files field you have to specify the actual file path. You can put more files (if you want to have more starting points) by separating them with a pipe |. For each file you want to be able to debug, you need to specify the full path.

    Again, if you are debugging a server app or something else, that has a single starting point, you only need the startup file specified in the config. :)

提交回复
热议问题