Skip to content

[XDebug] Path mapping in PHP Storm #2763

@adamziel

Description

@adamziel

When I use XDebug in Playground CLI with PHPStorm, my project directory may be anything from an empty dir to a full WordPress installation. If I mount pwd at /wordpress, PHPStorm can see most PHP files (maybe except for /internal) and I can set inspect code, set breakpoints, and step through those files in the code editor. However, if I don't mount anything, XDebug connects to Playground but then asks me to set up a path mapping. Currently, there's no way to do it – I don't have any files in my project directory. I notice I'm thinking "oh, I don't know how to use that".

Let's find a sensible way forward that would empower the user to debug their plugin, theme, entire WordPress site, whatever they have.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions