gwomacks / php-debug

Atom Text Editor package for PHP debugging
MIT License
119 stars 31 forks source link

Should throw an error if two PathMaps share an identical remotepath or localpath #209

Closed MitchLillie closed 6 years ago

MitchLillie commented 7 years ago

Steps to reproduce:

  1. Work on projects from two machines with different local directory structures, and share Atom settings between them for convenience.
  2. Enter PathMaps as the following:
    PathMaps: [
      "remotepath;localpath"
      "/sites/mysite/www;/Users/mitch/Documents/work/mysite"
      "/sites/mysite/www;/Users/mitch/Documents/home/mysite"
    ]
  3. Attempt to set a breakpoint from the code stored in home

This would pertain to the opposite as well (a localpath points to two remotepaths).

Resolution:

Happy to work on a PR if this is something people are interested in.

cchamplin commented 7 years ago

It would be great if you could provide a PR to fix this.

cchamplin commented 6 years ago

Should be fixed in v0.3.0