If while debugging with Zend Studio for Eclipse you get the error “select the local resource that matches the following server path” there are two possible solutions.
First, the easy one. If you opened the file from the explorer windows and not through Eclipse, the file is not open in the project so it doesn’t know where the other resources are. The open declaration ability will not work either.
IF that didn’t work, try this next change. If you have external libraries that are used in your application, first add the library to the build path of your project. Then, if you get the pop error while debugging: “select the local resource that matches the following server path” and “get content from the server for the following path”, you must map the paths as explained below.
Adding a Server Location Path Map
This procedure describes how to add a Path Map to a server so that files which are called from a certain location on the server will be searched for in a local location during remote PHP Script debbuging/profiling and PHP Web Page debugging /profiling. This will only apply when the ‘use local copy’ option is selected in the Advanced tab of the PHP Web Page debugging configuration) .
To add a Path Map to a server:
- Open the PHP Servers Preferences Page by going to Window | Preferences on the Menu Bar and selecting PHP | PHP Servers from the Preferences list.
- Select the server on which you would like to create the Path Map and click Edit.
- In the Edit Server dialog, select the Path Mapping tab.
- Click Add.
- An Add new Path Mapping dialog appears.
- Enter the Server Path from which you would like to create the Path Map. Files called from this location will be searched for in the path specified below.
- Select either the ‘Path in Workspace’ or ‘Path in File System’ option and click Browse to specify the location.
Path Map will be added to your server list.
The next time a file is called from the Path on Server, it will
be searched for in the local location you have specified.