XDEBUG How do I map local source files to server PHAR file?

I have XDEBUG setup and it will break on my breakpoints, but it gives me the following error

I have mapped local/build/foo.phar to the server: foo.phar that is deployed on the server.

Cannot find a local copy of the file on server C:\server\path\to\foo\foo.phar\lib\BarController.php
Local path is C:\local\path\to\foo\build\phar\foo.phar\lib\BarController.php

I can put a breakpoint in the local PHAR, but it tries to use the same path on the server, which is not valid.

Am I missing something?

Please sign in to leave a comment.