PDT enables you to map server paths to local paths while Debugging on a server.
Path Mapping is only activated during PHP Web Page Debugging.
The server path 'C:\Documents and Settings\MyProject' has been mapped to '/MyProject' on the Workspace:
During PHP Web Page Debugging , a file is called from location 'C:\Documents and Settings\MyProject\a.php':
The file that will open in the editor during Debugging will be the a.php file located in the 'MyProject' project, situated on the Workspace. The file content will still be taken from the server copy.
Server Path Maps can be viewed and defined in the Path Mapping tab of the PHP Servers Preferences page.Defining Path Maps
Path Maps can be defined in three ways:
If the debug/profile session was triggered from the Zend Debugger Toolbar, all files in the Workspace with the same name will be listed.
The dialog will not appear if a Path Mapping to the called location has already been defined.
Selecting a file from the list results in a Path Map being created between the called remote file's parent folder and the parent folder of the 'similar' file selected from the list. This means that every time a file is called from the same parent folder, will be searched for in the selected Workspace/local folder and opened during Debugging/Profiling .
If none of the options in the Matching items list represent your desired file location, you may select the 'Do not map the following server path to a local resource: ' option. This means that, during the debugging/profiling process, whenever this path is called, no files will open in the editor. You can click Configure to modify the path to include any parent or child directories.