Best way to debug the updater process in a docker environment

On one of the user accounts I have running in my tt-rss installation, it happens that feeds go red and give an error that the updater process failed with exit code 255.
All intermediate steps seem to be working fine (getting XML from telegram using rsshub docker, decomposing the xml + translation via python/beautifulsoup and generating new xml files ready for tt-rss to collect).
So right now I try to get a better understanding on how the updater is running and how to best debug it. I had a look at the wiki page, but that doesn’t really help me forward.

I enabled logging on php and right now I see things like:
Sep 30 22:11:08 35111f5e007b user.err php: #0 /var/www/html/tt-rss/classes/db/migrations.php(69): PDO->query()
Sep 30 22:11:08 35111f5e007b user.err php: #1 /var/www/html/tt-rss/classes/db/migrations.php(62): Db_Migrations->create_migrations_table()
Sep 30 22:11:08 35111f5e007b user.err php: #2 /var/www/html/tt-rss/classes/config.php(430): Db_Migrations->get_version()
Sep 30 22:11:08 35111f5e007b user.err php: #3 /var/www/html/tt-rss/classes/logger/sql.php(15): Config::get_schema_version()
Sep 30 22:11:08 35111f5e007b user.err php: #4 /var/www/html/tt-rss/classes/logger.php(39): Logger_SQL->log_error()
Sep 30 22:11:08 35111f5e007b user.err php: #5 /var/www/html/tt-rss/classes/logger.php(32): Logger->_log_error()
Sep 30 22:11:08 35111f5e007b user.err php: #6 /var/www/html/tt-rss/include/errorhandler.php(80): Logger::log_error()
Sep 30 22:11:08 35111f5e007b user.err php: #7 [internal function]: ttrss_fatal_handler()
Sep 30 22:11:08 35111f5e007b user.err php: #8 {main}
Sep 30 22:11:08 35111f5e007b user.err php: thrown in /var/www/html/tt-rss/classes/db/migrations.php on line 69

Last time I had something like this I exported and imported the configuration and everything worked fine again for a few days, but since it’s repeating itself I need to figure this on out :expressionless:

What I forgot to mention that the debug feed on the feeds in red all works fine. It shows everything there is and nicely dumps the xml.

you can enable xdebug in the container, .env:

TTRSS_XDEBUG_ENABLED=yes
# debugger client host (that is, host where e.g. vscode is running)
# optional, container sets it to default gateway
# TTRSS_XDEBUG_HOST="..."

then use whatever you want to debug, i use vscode (press f5 and you should be able to set breakpoints and see requests in realtime)

Can logging be turned on as well for specific containers?

containers should be logging something to stdout, not sure on the verbosity. php errors should go to tt-rss error log unless php itself crashes.