Query SQL in Whoops
Standard debug info shows the SQL and recordcounts of all queries that were run up to the point of error. It would be really useful to see that in the database info tab.
Unfortunately, the engines don't give me a way to tap into this data. However, the cbdebugger does if you use quick/qb