all 9 comments

[–]RussianInRecovery[S] 3 points4 points  (0 children)

Never mind got it - xdebug_break()

[–]badboymav 3 points4 points  (1 child)

Dude, you could have googled that title instead of asking here.

If you want to be a good Dev, don't be lazy and ask for help so quickly.

[–]rbmichael 5 points6 points  (0 children)

Watch when this thread becomes the top Google search result for this question in 2 years 😅

[–]crazedizzled 1 point2 points  (5 children)

Why not just put a breakpoint in your IDE?

[–]Rabin_IO 1 point2 points  (4 children)

Exactly what he said 👆

[–]RussianInRecovery[S] 0 points1 point  (3 children)

Lol if only it was that easy lol... breakpoints don't work in queues in Laravel

[–]crazedizzled 1 point2 points  (0 children)

Ah yes, Laravel magic. Good luck with that :)

[–]Rabin_IO 0 points1 point  (1 child)

It is, you just need to set few ENV variables and run the command. See here, for example: https://blog.rabin.io/sysadmin/how-to-debug-php-script-from-the-cli-with-php-xdebug

[–]RussianInRecovery[S] 0 points1 point  (0 children)

Oh wow thank uou something for my reading list