The "Recent log messages" is very handy to track down errors on sites. While this works great for errors in PHP code, it is often unhelpful for errors in Twig code. E.g. I've this error message in my log:
User error: "attributes" is an invalid render array key in Drupal\Core\Render\Element::children() (Zeile 98 in /web/core/lib/Drupal/Core/Render/Element.php)
#0 /web/core/includes/bootstrap.inc(346): _drupal_error_handler_real(256, '"attributes" is...', '/var/www/vhosts...', 98) #1 [internal function]: _drupal_error_handler(256, '"attributes" is...', '/var/www/vhosts...', 98, Array)
(47 more lines here)
This strack trace has 47 points, most of them from Drupal core. The error is obviously in my custom theme.
#11 /web/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/custom/w...', Array)
Due this line I suspect one of my custom Twig templates is incorrect, but I can't figure out which one, due the truncated filename.
How can I get the full error message of one specific line in the stack trace? If I would know the full name of the file mentioned in line #11, it would greatly help me to fix my error.