Installing Xdebug on macOS, Valet, & VSCode - with Derick Rethans

preview_player
Показать описание
Follow along with my livestream as we install Xdebug on a Mac with Laravel Valet and connect it to VS Code.

-

🛣️ What are these streams?
Coding, out loud, together. We’re building real applications, live, in real time. I can’t promise that NO code will happen on these projects between streams, but everything you see on these streams is really what it’s like to write web applications, primarily in Laravel and Vue/React.

🛣️ Who is Matt Stauffer?

🛣️ Follow along

Рекомендации по теме
Комментарии
Автор

Thanks to Johnny and Derick, this is a big honor for all of us to have this opportunity to learn from you two.
This was a great experience.

milanmilinkovic
Автор

This video highlighted the main issue of why a lot of people don't use Xdebug. It is a pain to setup and very different based on editor or os, the maker itself is struggling to get setup and constantly saying things like 'i don't know how that works in your setup'. Referring people to just use an IDE is not the way something should be. When I use the debugger in javascript it just works everywhere. you open your favorite editor and type debugger(); that's it. That being said I do think everybody should use it, I use it all the time and is the only time-efficient solution for complex problems. There is a giant lack of a unified quick start. Having to re-add xdebug for each php version is also a big pain, it should have an xdebug config file and should support certain php versions not be a part of the php config and so tightly coupled.

Chrizzmeistah
Автор

Matt & Derick Thank you! just made it trying with you good finally have Xdebug for laravel with php 8

santiagoosoriosanchez
Автор

Thanks so much. Was truely great finally got xdebug working again. Also understand way more. A couple of things that helped me.
1. Lots of valet restarts to keep sane. Also even a full reboot of my Mac helped at one point. Well at least i think it did help.
2. Make sure your .bash_profile and .profile are pointing to the expected php.ini.
3. And they line up in the terminal and on the browser as discussed in the video.
4. Finally xdebug 3 is a little different and you actually need to enable step debugging adding 'xdebug.mode=develop, debug' to my php.ini did the trick.

joshvandalen
Автор

could you cover x-debug 3 + laravel homestead + vscode + mac os? I got it working on ubuntu desktop. same settings won't work on mac though

vjmedias
Автор

I was trying yesterday to enable xdebug in vscode, now its work.
The way it work looks similar to Visual studio .net
Amazing

abdulbasetalhelaly
Автор

Hi Matt I followed the steps but I'm using phpStorm, how can I make path mapping work with valet ?

TAGHREEDAA
Автор

php location in my laptop is (I have installed mamp) /usr/bin/php
and pecl location is /usr/local/bin/pecl
how can I fix this problem?
I have to delete mamp?
please help me
and another question
I don't know what PECL do and I guess is something like mamp but setup in console, am I right?

aliiiabniki
Автор

Matt damn... You speak so quickly, type, change windows and so on so quickly that I have serious problems understanding what you are doing there ;oD
Sometimes you have to let other people speak and not interupt every time.

JohnnyBigodes
Автор

In my case I had to add the variable in the file

lucianoquintana