Skip to content

Conversation

@danloveg
Copy link
Contributor

Closes #2031

I've been curious about using debug mode in Symfony so I took a look at this issue. Here is the debug mode bar working in the BS5 theme:

debug mode working

The main issue besides the one fixed in the DebugPDO class was the fact that the Symfony debug bar is incompatible with the strict content security policy that's enabled for BS5 themes. Rather than refactor how the debug bar gets rendered, I disabled the CSP when debug mode is on.

Other issues addressed

One interesting thing with debug mode is that warnings and errors are rendered directly to the HTML displayed to the user. I wasn't able to fix all of these, but I fixed a number of the most obvious ones that get rendered to the homepage.

The "random" changes I made in this pull request address those errors. For example, adding the $parsedown variable to QubitMarkdown.class.php fixes this error from being rendered:

parsedown error

@sarah-mason sarah-mason added the Community Pull requests that have been contributed from community members outside Artefactual label Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Pull requests that have been contributed from community members outside Artefactual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problem: Debug mode broken in BS5

2 participants