PHPStorm debug PHP and PHPUnit

Publié le: 04 décembre 2024
sur la chaîne: Zoltán Papp
165
0

How to debug php in PHPStorm on Ubuntu 24.04

After installing php-xdebug edit the

/etc/php/8.3/cli/conf.d/20-xdebug.ini
Put content:

zend_extension=xdebug.so
xdebug.mode=debug
xdebug.client_host=127.0.0.1
xdebug.client_port=9003

Then open PHPStorm settings and follow description in PHP / Debug dialog. Then start Listening for debugger.on top of the editor screen.
Start react client and Laravel artisan server. Then open the configured browser, start debugging listener beside the url field.
Navigate to the request url of the placed brakepoint and enjoy the fully workable debugger.

For PHPUnit testing, set the Test frameworks as viewed in the video.

Please by me a cup of coffe if I helped to you:
https://buymeacoffee.com/pzoli


Sur cette page du site, vous pouvez voir la vidéo en ligne PHPStorm debug PHP and PHPUnit durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Zoltán Papp 04 décembre 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 165 fois et il a aimé 0 téléspectateurs. Bon visionnage!