martomo / SublimeTextXdebug

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

enhancement to have shared path_mapping #69

Closed bilogic closed 10 years ago

bilogic commented 10 years ago

Hi,

Can we map a few /path/to/file/on/server/ to 1 /path/to/file/on/computer? When I did that, the code did step through, however breakpoints do not work. Thanks!

martomo commented 10 years ago

Path mapping does not work like that, it goes through the list entries and replaces the paths with first found match, therefore any following entries with same path is unable to find a match, because it has already been replaced.

From what I understand, it might be a solution to define the path_mapping for each *.sublime-project depending on the files on the server instead of the Xdebug.sublime-settings.