FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

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

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
zburnham



Joined: 25 Aug 2009
Posts: 4

PostPosted: Mon Nov 02, 2009 4:27 am    Post subject: Difficulty configuring project for remote debugging when index.php not at project root Reply with quote

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
View user's profile Send private message
zburnham



Joined: 25 Aug 2009
Posts: 4

PostPosted: Tue Nov 03, 2009 2:06 am    Post subject: uh, nevermind Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB