While writing plugins, I like to be able to easily force them to be called, and to view the debug messages.
I’ve gotten a process that works, so I’m posting it here so the next person might be able to find it, and to improve it if possible.
- stop the systemd service I normally have for updates. Probably unnecessary.
- make changes to the plugin code
sudo -u www-data php update.php --force-rehash --debug-feed *feed id*
- goto step 2
I got the feed id by running
SELECT id, title FROM ttrss_feeds; and looking for the right one.
You can also get the feed id by pressing “f D” in the web UI.
This process works, but if there is a better way to do any of that it would be cool to know about.
Is there any place that documents how to test plugins?
I wasn’t able to find anything, but I think something should be put here at least: git.tt-rss org/fox/tt-rss/wiki/Plugins
I got here by reading the code and trying things.