Difficulty configuring project for remote debugging when index.php not at project root

1 message Options
Embed this post
Permalink
zburnham

Difficulty configuring project for remote debugging when index.php not at project root

Reply Threaded More More options
Print post
Permalink
I have a project I'll call "Example Project".  In the root folder of the project, there is a folder called 'htdocs', which contains my index.php file.  On the server side, the 'htdocs' folder is the DocumentRoot of the virtual host.



In other words, c:\Documents and Settings\User\My Documents\Example Project\htdocs\index.php maps to http://www.example.com/index.php .



I cannot determine how to correctly set up netbeans for remote debugging in this case.  I have a feeling I need to set up a server path mapping but I do not understand how it's supposed to work.  



In the project properties -> run configuration dialog, I have tried to set the index file to "index.php", but it insists it can't find it.  Which makes sense, i guess, since it's expecting to find an 'index.php' file at the root of the project directory.  



Something else strange:  In trying to isolate this issue, I at one point had an index.php at the root of the project and one inside the htdocs folder.  I started a debug session, and found I could step through code.  This was not something I could do before.. however, what was happening is that the code I was stepping through was *not* the code being displayed.  In other words, if I were suspended on line 5 in htdocs/index.php, I would see the run indicator (green highlighted line) on line five in index.php.  Very strange!



Any suggestions are welcome.





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]