NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Mapping setting for Remote debugging


Joined: 20 Jan 2005
Posts: 10
Reply with quote
I am running PHPEd on my local Windows machine and running/debugging my scripts on a remote Linux-box with Apache. Running the scripts so far is fine and the debugger module is also installed correct, but something seems to be wrong with my mapping settings.

When I run the debugger session on the remote box, I get the following error:

Failed to map remote file
"/srv/www/htdocs/webapp/public/index.php"
to any local file.

This pops up for every file where the debugger is running over. Although the debugger seems to work fine; I can see all variable values.

My mapping settings are as follows:

Remote directory:
\\servername\webserver\webapp

Local directory:
\\servername\webserver\webapp

URL:
http://serverURL/webapp

Any ideas?? Embarassed


Last edited by spinmaster on Tue Apr 26, 2005 8:23 am; edited 2 times in total
View user's profileFind all posts by spinmasterSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
Remote directory could not be \\servername\webserver\webapp, it should be a valid path FROM THE SERVER POINT OF VIEW, for example, /srv/www/htdocs
URL could be http://servername/
and local root/project root: \\servername\webserver
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 20 Jan 2005
Posts: 10
Reply with quote
thx Very Happy almost perfect! The debugging in my script itself is now fine, however I am including some third-party libs which are in my php-include directory:

/usr/share/php/thirdpartylibs/

Do I have to add the php-include path to my mapping settings as well??

e.g. under MAPPING add:

Remote Directory:
/usr/share/php/

??
View user's profileFind all posts by spinmasterSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
http://forum.nusphere.com/howto-setup-project-with-scripts-located-out-of-web-tree-t646.html
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 20 Jan 2005
Posts: 10
Reply with quote
read the stickyso far, however I'm not 100% sure how to set the "local directory" setting under mapping:

Remote dir would obviously be:

/usr/share/php/

Would local dir then be:

\\servername\webserver\mydir\webapp ??

How is it in general? Does one remote directory always has to correspond/mapped to a local directory??

thx a lot for the support Cool
View user's profileFind all posts by spinmasterSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
If you have something to debug in /usr/share/php/thirdpartylibs/
either this directory or /usr/share/php/ should be mapped to a local directory. Under local I mean the path to the same or copied directory from the IDE point of view. In other words, local directory might look like this: \\servrename\share\php\ or even c:\mycopyofthirdpartylibs\
To check if you have correct mapping entry, you should make sure that a file located in say /usr/share/php/thirdpartylibs/somesubdir/somefile.php is the same as file in \\servrename\share\php\thirdpartylibs\somesubdir\somefile.php
(or c:\mycopyofthirdpartylibs\somesubdir\somefile.php)
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Mapping setting for Remote debugging
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic