Be outputs debug answer into ajax responses
Related to #40216
Prerequisites: Turn on BE debug and SQL error display
Create a debug call that triggers an SQL error.
E.g. Install ext:flux and move a page in pagetree
The ajax response contains some
<script></script>tags which contain the JS code to show the error in the debug toolbar.
The actual ajax response is shown as an exception in the debug toolbar.
No debug output at the ajax response, but a log entry. Or a warning that the answer contains a hidden message.