Debugging SilverStripe Reports

Debugging database queries with ORM changes introduced in 3.2 has become more complex. Running $dataList->sql()gives you a prepared statement (in the form SELECT * FROM Table WHERE Title = ?), which is a good start. ?showqueriesA URL variable does the same.

How to get values ​​or parameters is what interests me. I know https://github.com/lekoala/silverstripe-debugbar but I would like to know if there is a way to get them without any extensions in the XDebug console (or just var_dump: something like that).

I quickly looked through the silverstripe-debugbar code , but did not find an easy-to-use solution. If he is there somewhere, please indicate me :)

+4
source share

Source: https://habr.com/ru/post/1650282/


All Articles