I
I
Ivan2020-09-25 15:51:19
Laravel
Ivan, 2020-09-25 15:51:19

Can I somehow enable the laravel debugger if the frontend is on vue js?

The standard Laravel has an excellent debugger that shows the routes along which the request was made, sql queries and much more. Included in env APP_DEBUG=true. But in the frontend project on vue, and as a result, there is no this debugger. Is it possible to set it up somehow? Or something similar to show routes, methods, etc. Delivered xdebug for phpstorm, but it not that. True, I have not yet figured it out properly.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Glory, 2020-09-25
@Djonson86

what do you mean xdebug in phpstorm is not suitable for you?
Everything is simple. frontend you have on vuesj. Through the browser developer tools (network tab), you track what data flies to the backend and what is returned.
And in phpstorm, turn on the debugger and set breakpoints and debug the program as you need. You can intercept in controllers and then step by step execute the program. Add variables of interest to the wathes window.

A
Alex Wells, 2020-09-25
@Alex_Wells

https://github.com/itsgoingd/clockwork

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question