Hi,
I have a reference dashboard script which is normally working. If I add console.log();
lines and _bump
splunk, I expect to see output in chrome's console ( F12
).
But I don't. Am I doing something wrong?
If written in the correct space, dashboard scripts do support console.log()
calls, so if they aren't working, then either:
console.log()
is in an invalid point in code, orvscode
does this by default.If written in the correct space, dashboard scripts do support console.log()
calls, so if they aren't working, then either:
console.log()
is in an invalid point in code, orvscode
does this by default.Can we see some more of your script? I can't hink of a reason why console.log would not be working in this context.
@lquinn you're right, console.log()
works in any legal context - the problem for me in this case was that the script which was working, silently began failing. Is there a way to debug/validate a dashboard script to find errors?
For future readers with my issue: I suggest opening your script in an IDE that will validate your JS. I used vscode
to quickly find a missing ,
, and my script began behaving again.