gwomacks / php-debug

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

Perhaps add current project path (or hash of it) to path map list #287

Open ghost opened 6 years ago

ghost commented 6 years ago

The path mapping functionality is really neat. As you know from #275 I have the autoscan functionality disabled and have several projects that support debugging. Because I'm using a consistent folder structure, however, they all map the same path (e.g. /var/www/) to a folder on my host (e.g. /home/user/Projects/myProject).

As you may have deduced, this means I have to overwrite the path map when wanting to debug a new project, as php-debug stores an absolute list of local paths to remote paths.

Is it feasible to add another nesting level in the JSON that just contains a hash of the currently opened project? That would ensure that path maps are automatically separate for each project and remembered as appropriate. This would allow me to configure the same folder and point it to different host folders.

Thanks!