martomo / SublimeTextXdebug

Xdebug debugger client for Sublime Text
MIT License
564 stars 89 forks source link

Add Ability To Specify Ordered Path Mappings In Project Config #148

Open mrphang opened 9 years ago

mrphang commented 9 years ago

The path mappings loaded from the project are loaded in a way that they are checked for a match in an unordered way. This allows you to specify paths to be checked in a way so more specific paths can match over less specific paths.

... "ordered_path_mappings": [ ["/path/that/is/specific", "/specific/local/path"], ["/path", "/general/local/path"] ] ...

a file '/path/that/is/specific/a.php' will map to '/specific/local/path/a.php' a file '/path/whatever.php' will map to '/general/local/path/whatever.php'

ryanpcmcquen commented 5 years ago

I've merged your fixes into my fork: https://github.com/ryanpcmcquen/SublimeTextXdebugPlus

Which I am attempting to get into Package Control: https://github.com/wbond/package_control_channel/pull/7658