Debugging Grafana Code

I am new to Grafana, I installed Grafana and followed all the instructions in the read me file. I am using Visual Code for go lang, now I just want to debug Grafana code so that I can understand this process.

Can anyone suggest me what I should do. I heard about a debugger called Delve. Can someone tell me how to use it, because when I use Delve, it says that there are no source files with the ability to build in this place.

I followed the following links:        https://github.com/grafana/grafana , https://github.com/derekparker/delve

+4
source share
1 answer

The grafana-server main.go file is not in the root directory. Try it cd pkg/cmd/grafana-serverand start from there.

+2
source

All Articles