Skip to content

[ php-wasm ] Xdebug and IDEs #2435

Closed
Closed

Description

@mho22

Xdebug is currently supported in PHP.wasm versions from 7.2 to 8.4. It has been introduced in the Node version of PHP.wasm. [ Asyncify and JSPI ]. Practically : any script using the loadNodeRuntime can enable Xdebug.

Progress

Under development

  • WP Playground CLI - VSCode
  • WP Playground CLI - PHPStorm
  • PHP.wasm Node - VSCode
  • PHP.wasm Node - PHPStorm
  • PHP.wasm CLI - VSCode
  • PHP.wasm CLI - PHPStorm

What are the current limitations

  • Xdebug is not available on PHP.wasm Web.

  • The virtual filesystem is currently not available for step debugging. This issue is listing the possible solutions to give access to it. And this pull request is fixing the issue.

  • When starting the debugging phase using @php-wasm/cli, Xdebug pauses at the first PHP line.

Related links


cc @fellyph @adamziel

Activity

  1. changed the title [-][ php-wasm ] Xdebug and Devtools[/-] [+][ php-wasm ] Xdebug, IDEs and Google Chrome Devtools[/+] on Oct 13, 2025
  2. changed the title [-][ php-wasm ] Xdebug, IDEs and Google Chrome Devtools[/-] [+][ php-wasm ] Xdebug and IDEs[/+] on Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions