Debugging with Xdebug and PHPStorm
HTML-код
- Опубликовано: 27 окт 2024
- The following video describes how to debug PHP applications using PHP Xdebug extension and PHPStorm.
The video describes this on Windows Xampp installation, but the basic idea is the same for Mac or Linux.
Debugging on Mac or linux.
bit.ly/2SVpb6n
=========================================================
-----------------AUDIO GEAR I HAVE-------------------
My Main Microphone - amzn.to/3eVCQ8v
Microphone Scissor Arm Stand - amzn.to/39mkGLQ
Microphone Shock Mount with Pop Filter - amzn.to/3jz7R5v
Audio Interface - amzn.to/30IoJhz
Microphone Pop Filter Mask Shield - amzn.to/3eXoQee
-----------------CHEAP AUDIO SETUP-----------------
Microphone + Shock mount + Scissor Arm - amzn.to/2D10Zxe
=========================================================
Follow on social media:
/ thecodeholic
/ thecodeholic
github.com/the...
This is straightforward and very useful tutorial. Thanks for making this.
After 8hrs you were the one to finally help me.Thank you 3000 man!
Very helpful. Thank you.
Thank you for this tutorial sir! 😁
Thank you for posting this video. I appreciate your effort it helped me figure out what I was doing wrong.
Welcome
thank you bro
[Xdebug]
zend_extension="php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_port=9000
Thanks for this. I can't set up a local development for a specific site so I'm going to put xdebug on the staging server instead. This will allow me to do that
It is working, Thank you!
Thank you!
I don't know why they downvote this video
THIS WORKS 100% in 2024
dear sir, i had try, configure it, and run it with chrome & Firefox Developer, but when i click refresh button on the browser, the PhpStorm doesn't blinking or capture connections.. i wonder where are my faults.. thank's
thanks codeholic!
For me it doesnt work. All settings same, I am just using wamp64. I enable debugging, refresh page and nothing happens. What could be the problem?
I do not see that you have installed xdebug.dll
but why we didn't use phpstorm built in server instead of apache ?
PHP Builtin server does not process PHP files. It serves static files only.
from where language and settings?
I'm wondering which xdebug version you are using.
That video is very old. It uses xdebug veraion 2
Im guessing my PhpStorm should point at the same php install as XAMPP is using, correct?
It's not mandatory, but yes it will be good. For better autocompletion and less errors from PHPStorm
Good day Sir, i cannot see debug panel on the lower portion. pls help. thank you
Failed loading Zend extension 'php_xdebug.dll'
i wonder why you need to install debug extension for chrome? can you make it sense?
The extension is the easiest way to start and stop debugging. It also gives you possibility to use other debugger such as zend debug.
@@TheCodeholic oh i see, not sure but maybe new browser versions dont require to confirm start and stop debugging with third party tool. I've used X-debug with PHP storm (use xampp for windows) for over 2 years and realize that all i need is config something in php.ini file
In my opinion That's because you configured your php.ini file to automatically start debugging when it sees breakpoints, if you do not want debugging any more you will have to disable config in php.ini or remove breakpoints. But the extension gives you possibility to start and end debugging when you want. Just make sure you change your config in php.ini so that it does not automatically start debugging.
Hey there, my show some error,cold you help me?
Cannot accept external Xdebug connection: Cannot evaluate expression 'isset($_SERVER['PHP_IDE_CONFIG'])'
Did you google this error? What does google tell you?
@@TheCodeholic so, the problem was in my Windows. I formated my pc, and in the first configuration worked very well
appilcations -> applications
Thanks
[Xdebug]
zend_extension="php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_port=9000