golang debugger stops on empty lines - why?

☆樱花仙子☆ 提交于 2019-12-12 20:23:55

问题


I'm using Goland, the IntelliJ Go debugger. I've tried doing a go run build.go clean followed by a go run build.go build, and then ./pkg/cmd/grafana-server/debug, however I still get my debugger stopping in weird places, namely, blank lines:

What causes the Go debugger to break on blank lines, and how can I correct it?


回答1:


Are you building the binary yourself using go run as described in the issue? If so, please switch to the IDE and use the built-in Run Configuration tools and launch a debug session from there. If the issue still happens, then please upgrade to Go 1.10.1 or newer, and make sure you are using GoLand 2018.1.1 or newer. If this still happens, please open an issue on the official tracker https://youtrack.jetbrains.com/issues/Go as logs are needed and this is not easy to share there.



来源:https://stackoverflow.com/questions/49805029/golang-debugger-stops-on-empty-lines-why

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!