| View previous topic :: View next topic |
| Author |
Message |
zburnham
Joined: 25 Aug 2009 Posts: 4
|
Posted: Mon Nov 02, 2009 4:27 am Post subject: Difficulty configuring project for remote debugging when index.php not at project root |
|
|
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. |
|
| Back to top |
|
 |
zburnham
Joined: 25 Aug 2009 Posts: 4
|
Posted: Tue Nov 03, 2009 2:06 am Post subject: uh, nevermind |
|
|
Found the answer to my question. In Project properties -> Sources there is a place to enter "Web root". There you can specify the directory that is your webroot. Once I did this, I could debug as intended.
I had missed it because it was greyed out for some reason. |
|
| Back to top |
|
 |
|
|
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 You can attach files in this forum You can download files in this forum
|
|
|
|