lucatume / ffi-path-mapping

Proof-of-concept setup-less path mappings for containerized PHP projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proof of concept path-mapping free setup

Usage

Start the container providing the required user and local project directory information:

make build

In your IDE, start listening for XDebug connections on port 9003. Do not set up any path mappings. Add a breakpoint at line 5 of the src/source-1.php file.

No path mappings required (not working)

  • Ensure there are no path mappings set up in your IDE.
  • Visit http://localhost:8923/?redirect_files=1
  • You should not get a prompt to set up path mappings, XDebug should just work.

With path mappings (working)

  • Ensure there are no path mappings set up in your IDE.
  • Visit http://localhost:8923
  • You should get a prompt to set up path mappings; once that is done, XDebug should work.

About

Proof-of-concept setup-less path mappings for containerized PHP projects.


Languages

Language:C 46.7%Language:PHP 35.9%Language:Dockerfile 10.9%Language:Makefile 5.1%Language:Shell 1.4%