Non-string messages not rendering when exception raised
- Laravel v9.44.0 (PHP v8.1.13)
- barryvdh/laravel-debugbar version - v3.7.0
How to reproduce
Modify the laravel example app by inserting the following lines anywhere into resources/views/welcome.blade.php:
@php
$arr = [
'name' => 'John',
'age' => 30,
'cars' => [
'Ford',
'BMW',
'Toyota'
]
];
\Debugbar::log($arr);
throw new Exception('Error Processing Request', 1);
@endphp
Observed behavior

Expected behavior
With the throw new Exception('Error Processing Request', 1); line removed / commented out:

I made a fix for this, please approve #1399
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.