Skip to content

[ php-wasm ] Xdebug and IDEs #2435

@mho22

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

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