Backend Development 2 min read

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.

php中文网 Courses
php中文网 Courses
php中文网 Courses
How to Install and Configure YASD for PHP Debugging with PhpStorm

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           # port

In 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.

debuggingPhpStormyasd
php中文网 Courses
Written by

php中文网 Courses

php中文网's platform for the latest courses and technical articles, helping PHP learners advance quickly.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.