A
A
andreyqin2015-01-15 12:29:02
Exceptions
andreyqin, 2015-01-15 12:29:02

How to find the cause of an exception in Laravel?

Hello.
The project has a certain entity that the admin can change (create/edit/delete). There is a bug: we are logged in and are on the edit page, in case of logging out in another tab and clicking on the "Save" button on the first tab, our browser returns a 404 error (it does not transfer to the 404 page itself, the error is simply in the console). During debugging, an exception was found (file /vendor/laravel/framework/src/Illuminate/Foundation/Application.php, handle method). That is, when we are logged in and trying to save, everything is OK, but if we are not logged in, we get into the catch block.
The problem is that I can't find where the exception occurred in the try block. I go inside stacks and don't find a place with throw new Exception or something similar. In debugging, I'm not strong yet, so maybe there are some ways to determine the location of the exception. IDE - PhpStorm.
Or someone just met with such a problem and knows the cause of the occurrence - I will be grateful for the help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
IceJOKER, 2015-01-15
@IceJOKER

Doesn't the built-in debugger work?
the call stack, as well as the code itself where the error was thrown, what else is needed? O_O

E
Eugene, 2015-01-15
@Nc_Soft

config/app.php -> 'debug' => true,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question