How to Install and Configure YASD for PHP Debugging with PhpStorm
This guide walks through installing the YASD debugging extension, adding the necessary php.ini settings, configuring PhpStorm's debug port and server path mapping, and running a PHP project (e.g., Hyperf) with breakpoints to enable remote debugging via a browser.
First, install YASD by visiting its GitHub repository.
Then add the following lines to php.ini to load the extension and configure remote debugging:
zend_extension=yasd
yasd.debug_mode=remote
yasd.remote_host=10.50.50.233 # host IP
yasd.remote_port=5556 # portIn PhpStorm, set the Xdebug debug port to 5556 under Settings → Languages & Frameworks → PHP → Debug.
Add a server in Settings → Languages & Frameworks → PHP → Servers and configure path mapping.
Start the project (e.g., php -e bin/hyperf.php start ) with breakpoints set (ensure they are on generated proxy classes for Hyperf), then press the debug button and open the browser to the appropriate URL to begin debugging.
php中文网 Courses
php中文网's platform for the latest courses and technical articles, helping PHP learners advance quickly.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.