[TYPO3-v4] AJAX responses and SQLdebug

François Suter fsu-lists at cobweb.ch
Mon Jan 31 10:12:48 CET 2011


Hi all,

When activating SQLdebug and an SQL error happens, the message is 
wrapped since TYPO3 4.4 in a JavaScript debug() call so that it appears 
in the debug console.

This is fine. However it is problematic during AJAX calls, because this 
corrupts the response. It would be nice instead to be able to get that 
error as part of the response and be able to handle it cleanly wherever 
the AJAX response is handled/displayed.

Any idea how this could be best achieved? What about turning SQLdebug 
into throwing an exception? Of course this would generate exceptions 
where there none before, but it seems cleaner anyway.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-project-v4 mailing list