Action Button debugging

I implemented my first action button the other day and it was not obvious to me where or how to debug its failure. The failure mode was just a button that didn’t do anything.

Since I run Grist self-hosted on podman and started via systemctl, I was able to view the Grist logs with journalctl --user -u grist -f and see my errors there.

It was quite easy to debug using the log output.

I figured I drop this here for anybody else trying to figure out how to debug an Action Button since I didn’t run across this in my searches.

Also (particularly when Grist is not self-hosted), looking at the console in the devtools can be useful to understand what the action button is trying to do and see the error messages. This is illustrated on the French forum: Vue personnalisée pour importer des données d'une table dans une autre - #21 par audezu - Demandes d'aide - le forum Grist