ae3e / ae3e-plotly-panel

Plotly panel for Grafana
Apache License 2.0
94 stars 24 forks source link

Where is console.log output? #21

Closed rdt12 closed 3 years ago

rdt12 commented 3 years ago

Hi,

I'm trying to write a heatmap using ae3e-plotly-panel which I installed under grafana-7.1.3 using grafana-cli.

My question is, how do I see errors running the "script" in order to debug? I see that in the default script there is a console.log statement. Where does the "console" log to?

In case it's an obvious newbie mistake that someone can help me with, the indication that I have that there is a problem is that when I hover over the red exclamation mark in grafana, I see "t is undefined".

Thanks,

Ron

RedShift1 commented 3 years ago

It's in the browser's developer console. If you are using Chrome on Windows, press CTRL+SHIFT+I.

rdt12 commented 3 years ago

Hi,

Thanks for the reply. I was looking in the console because I had read that that is where log messages should appear. Based on your reply I kept banging my head against this until finally I realized my mistake. I was assuming that the "script" would be run and I would see log messages everytime that I refreshed the dashboard on the panel editing page. That appears to not be the case. Once I saved the dashboard and reloaded the page, I saw my longed for "hello, world" log message.

Thanks again,

Ron