Contributor Toolkit 2.1.0-beta.1 adds Xdebug step debugging for PHP running in WordPress Playground. Developers can set a breakpoint and trace WordPress Core one line at a time, without editing php.ini or installing an extension. The feature is off by default because it slows requests, and takes effect when the server is next started.
The addition aligns the Toolkit with the Xdebug options in the wordpress-develop Docker environment and wp-env. It also supports the WP Credits developer track, which already teaches Xdebug setup, as the program considers recommending the Toolkit as a primary contribution tool. The beta offers setup guidance for VS Code, Cursor, PhpStorm and Zed, including editor-specific configuration such as VS Code launch files and PhpStorm path mappings.
Playground uses port 9003, so only one running site can use Xdebug at a time. A saved code-editor preference also directs file-opening actions and tailors the debugging setup; unsupported editors, including Sublime Text, fall back to a choice of detected editors. Testing spans macOS with Apple Silicon, Windows and Linux, across Core and Gutenberg sites. Windows path handling and startup breakpoints are particular cases to verify before a stable release.
Author of the original text: Ryan Welcher (WordPress)