In the past few months, I worked on a design to bring path mapping into Xdebug itself, without having to rely on an IDE.
This allows for project defined maps, and goes beyond directory-to-directory maps. It will be able to map files, and line ranges:
xdebug.org/funding/001-nativ…