Cannot find any local file |
Site Admin
|
You have to setup mapping correctly or turn off showing mapping errors.
Should be noted that breakpoints won't work in files that phped failed to map. |
||||||||||||
|
Just turned off |
|
I have just turned off showing mapping errors but the message is showing yet. Are there any other way?
|
||||||||||||
|
Site Admin
|
Oh, sorry, I messed the message with another one.
This one is about missed local file, so why don't you place that file to appropriate directory and let phped see it ? Read this post on how to set up project properties and directories in particular: http://forum.nusphere.com/howto-setup-project-properties-in-phped-t645.html |
||||||||||||
|
problem with distributed files |
|
We work on a system of distributed files like a repository system (cvs). I need that the editor only look for my local files because the orther part of the code is not under mi local tree. I only need breakpoints into the files which i'm working in. My system look for the rest of files to run.
Thanks for all, but I think that this editor will not allow me to work this way. Do you have some suggestion? |
||||||||||||
|
Site Admin
|
Let's go deeper into details. If you run a remote debug session and step into say an included file which has no local copy in defalt location, phped asks where to take a copy from. The defalt location is calculated by mapping rules you set in the project properties.
For example if you have local root as c:\myproject\www and remote root as /var/www/ and step into a file in /var/www/subdir1/subdir2/file1.php, phped will look for file1.php in c:\myproject\www\subdir1\subdir2. Can you specify how your files are located locally and remotely ? Just two files, the file where you are stepping in and the file you are stepping to. |
||||||||||||
|
|
Excuse me, but all you have exposed is evident.
Let me explain you it in deep: All our links are formed by call to a php function which look for the existence of the file in the actual user 'work tree', if it donĀ“t exist the function return the fullpath of the file in the 'delopment central tree'.By example: General root structure: /var/wwws/html/ Development central root: /var/wwws/html/desarrollo/<all code> User work root: (This is the remote root for PhpEd) /var/wwws/html/username/desarrollo/<only actual work files> + index.php Call to the function: cheqroot("comun/util.php") if /var/wwws/html/username/desarrollo/comun/util.php exists return /var/wwws/html/username/desarrollo/comun/util.php else return /var/wwws/html/desarrollo/comun/util.php but /var/wwws/html/desarrollo/comun/util.php is not under the remote root defined in PhpEd, then PhpEd ask me for it. This do the debugger slow and tedious. My problem would be resolved eliminating the alert and the question: Do you want locale the file manualy?. Nevertheless, this question is necessary when i step into a funtion defined into a file that does not exist in the local root, for example. I think that this is a new feature request which will not be solved soon, but also I think that it is something interesting to consider. What do you think about it? Thanks |
||||||||||||
|
Site Admin
|
if /var/wwws/html/desarrollo/comun/util.php is not under the remote root, you deal with out-of-web tree scripts and should proceed with FAQ below:
http://forum.nusphere.com/howto-setup-project-with-scripts-located-out-of-web-tree-t646.html In short, you should copy /var/wwws/html/desarrollo/ to a local directory below the local root directory and add one mapping entry that will connect the local directory with remote one. |
||||||||||||
|
|
That solucion work fine for me
Thank you very much. (I have more questions but i will send you in other topics) |
||||||||||||
|
Cannot find any local file |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by