Site Admin
Joined: 13 Jul 2003 |
Posts: 8351 |
|
|
![](./templates/Morpheus/images/spacer.gif) |
Posted: Wed Aug 10, 2005 3:49 am |
|
![](./templates/Morpheus/images/posttop_left.gif) |
![Reply with quote Reply with quote](templates/Morpheus/images/lang_english/blue/icon_quote.gif) |
![](./templates/Morpheus/images/spacer.gif) |
![](./templates/Morpheus/images/spacer.gif) |
Debugger consists of two sides - server and client. The server side works it does so on your remote server and knows nothing about your client side. For example server part may step on your file say /var/www/somedir/myfile.php. When client part receives the server's packet it need to know what local file corresponds to /var/www/somedir/myfile.php and therefore it needs a lookup table to map /var/www/somedir/myfile.php to say c:\myproj\somedir\myfile.php. Strictly speacking, it's not necessary to map all the files, it's sufficient to map only directories. With the mentioned scenario you'd need an entry in the mapping table with
c:\myproj\somedir\ corresponding to /var/www/somedir/
or better
c:\myproj\ corresponding to /var/www/
In latter case all files in /var/www/ will be mapped to c:\myproj\, including ones in somedir subdirectory.
When you create your project and set Project Root directory to say c:\myproj\ and set remote root directory to /var/www/, phped creates one mappig entry for you automatically.
With the given example if for whatsoever reason, some of the files are not in /var/www/ directory, you have to create mapping entry yourself and point phped out where to find the local files. For example, if some files are in /var/inc/ and corresponding copies of the files are available on the local drive c: in c:\php\include\ directory, you'd create mapping entry for them:
/var/inc/ -> c:\php\include\
You may wonder what "URL" column is intended for in the mapping table. The answer is raither simple. PHPED when you run a file, need URL to do so. For example with the given example, if your project root url is
http:\\myhost\, and you opened and run c:\myproj\somedir\somefile.php, phped will run http://myhost/somedir/somefile.php and it's up to your web server to run /var/www/somedir/somefile.php.
|
|