wordpress-playground icon indicating copy to clipboard operation
wordpress-playground copied to clipboard

[ php-wasm ] Follow-up on Xdebug

Open mho22 opened this issue 6 months ago • 0 comments

Xdebug

  • https://github.com/WordPress/wordpress-playground/pull/2248
  • https://github.com/WordPress/wordpress-playground/pull/2326
  • https://github.com/WordPress/wordpress-playground/pull/2346
  • https://github.com/WordPress/wordpress-playground/pull/2408
  • https://github.com/WordPress/wordpress-playground/pull/2411
  • https://github.com/WordPress/wordpress-playground/pull/2840
  • https://github.com/WordPress/wordpress-playground/pull/3075
  • [ ] Feature : Make proper Xdebug unit tests work
  • [ ] Suggestion : Add support for php-wasm-web
  • https://github.com/WordPress/wordpress-playground/pull/2747

Xdebug IDE Path Mappings

  • https://github.com/WordPress/wordpress-playground/pull/2777
  • https://github.com/WordPress/wordpress-playground/pull/2840
  • https://github.com/WordPress/wordpress-playground/pull/2835
  • https://github.com/WordPress/wordpress-playground/pull/2860
  • https://github.com/WordPress/wordpress-playground/pull/2869
  • https://github.com/WordPress/wordpress-playground/pull/2947
  • https://github.com/WordPress/wordpress-playground/pull/3075
  • [ ] Cache the initial config and re-apply it when an error occurs
  • [ ] Link --experimental-unsafe-ide-integration and --experimental-devtools with --xdebug
  • [ ] Add path mappings based on the current website instead of the entire Playground
  • [ ] Ignore files and directories when running Xdebug
  • [ ] Transform --experimental-unsafe-ide-integration into --ide-integration
  • [ ] Suggestion - Refactor instructions logging code
  • [ ] Suggestion : rewrite only a portion of the config file.
  • [ ] Suggestion : keep the config file indentation intact except for our necessary configuration.

Xdebug Bridge

  • https://github.com/WordPress/wordpress-playground/pull/2398
  • https://github.com/WordPress/wordpress-playground/pull/2402
  • https://github.com/WordPress/wordpress-playground/pull/2409
  • https://github.com/WordPress/wordpress-playground/pull/2423
  • https://github.com/WordPress/wordpress-playground/pull/2442
  • https://github.com/WordPress/wordpress-playground/pull/2454
  • https://github.com/WordPress/wordpress-playground/pull/2527
  • https://github.com/WordPress/wordpress-playground/pull/2566
  • https://github.com/WordPress/wordpress-playground/pull/2722
  • https://github.com/WordPress/wordpress-playground/pull/3075
  • [ ] Feature : Prettify Xdebug var_dump when printed in the Browser Devtools Console
  • [ ] Suggestion : replace xml2js in favor of fast-xml-parser.
  • [ ] Suggestion : Screencast Wordpress instance ?
  • [ ] Suggestion : Add BiDi protocol ?
  • https://github.com/WordPress/wordpress-playground/pull/2612
  • https://github.com/WordPress/wordpress-playground/pull/2625

Caveats

  • No CSS to stylize logs - use ANSI instead

Dynamic extension

  • [ ] Transform withXdebug into a more generic option : withExtensions and manage those extensions individually.
  • [ ] Transform setPHPIniEntries to mention which php ini file we want to create or update
  • [ ] Set MAIN_MODULE = 2

Related issues and pull requests

  • https://github.com/WordPress/wordpress-playground/issues/2763
  • https://github.com/WordPress/wordpress-playground/issues/2752
  • https://github.com/WordPress/wordpress-playground/issues/2753
  • https://github.com/WordPress/wordpress-playground/issues/2755
  • https://github.com/WordPress/wordpress-playground/issues/2756
  • https://github.com/WordPress/wordpress-playground/issues/2757
  • https://github.com/WordPress/wordpress-playground/issues/2435
  • https://github.com/WordPress/wordpress-playground/issues/314
  • https://github.com/WordPress/wordpress-playground/issues/2299
  • https://github.com/WordPress/wordpress-playground/pull/2288

mho22 avatar Jul 02 '25 07:07 mho22