Category: debug-backtrace

Symfony 3.4 – How to debug_backtrace?

I am using Symfony 3.4, and I am trying to file_put_contents(‘/var/www/html/var/logs/deleted.log’, print_r(debug_backtrace(), true), FILE_APPEND); However, I am getting Uncaught PHP Exception SymfonyComponentDebugExceptionOutOfMemoryException: “Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 98570240 bytes) It appears the debug_backtrace might…