我是Grafana新手。我安装了Grafana,并完成了Read Me文件中给出的所有指令。现在,我只想用Visual Code调试Grafana代码,这样我就可以理解这个过程了。有人能建议我该怎么做吗?我听说过调试器叫做Delve。有人能告诉我如何使用它吗?因为当我使用Delve时,它说在这个位置没有可构建的源文件。
我跟踪了以下链接:https://github.com/grafana/grafana , https://github.com/derekparker/delve
我是Grafana新手。我安装了Grafana,并完成了Read Me文件中给出的所有指令。现在,我只想用Visual Code调试Grafana代码,这样我就可以理解这个过程了。有人能建议我该怎么做吗?我听说过调试器叫做Delve。有人能告诉我如何使用它吗?因为当我使用Delve时,它说在这个位置没有可构建的源文件。
我跟踪了以下链接:https://github.com/grafana/grafana , https://github.com/derekparker/delve
The grafana-server main.go file is not located in the root directory. Try cd pkg/cmd/grafana-server
and start from there.