R
R
Romi2021-06-05 02:04:48
Laravel
Romi, 2021-06-05 02:04:48

How to use Laravel Telescope to debug Jobs?

Installed Telescope - it seems to show, yes, that the Job has been completed, but is it possible to track the values ​​​​of variables somehow there or something like that? :)

In general, what is the best way to debug Jobs? Just write to the log or what?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vism, 2021-06-05
@romicohen

I installed https://github.com/romanzipp/Laravel-Queue-Monitor
from all the functionality, I just write to the database what happened with what

P
pLavrenov, 2021-06-05
@pLavrenov

For debugging, you can use dump() or dd() and execute queues from the console.
Well, it's better to immediately set a limit on the number of job executions, because in the case of a fail, it will get back into the queue.
*dump() + dump-server - prints the necessary data to the console and does not interrupt the execution of the job, without dump-server it displays everything to the console where the queue is running and it turns out a hash.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question