Debug custom plugin

I’m pretty new to Grafana and I’m working to a new custom plugin. I would know if there are some strategies in order to debug better the plugin using VS Code. There are some tutorial or instruction how to debug a custom plugin with VS code? I saw in package.json of template there are a option “watch” that allow compiler on the fly of plugin like react-scripts, but how can I see the changes on interface? Actually I have to create anytime a fake panel in order to see the effects of my changes on interface. There are a bettter way to work with it?

We hope to add docs on how to better debug your plugins in the future, but for the moment I suggest that you run yarn watch in your terminal. Edit the code, save, and refresh Grafana (press F5 or Cmd+R). That should render the latest changes.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.