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.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

BackendPHPyasd
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

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.