NetBeans Forums

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

PHP Path Mapping Help, Please

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



Joined: 04 May 2010
Posts: 1

PostPosted: Tue May 04, 2010 2:50 am    Post subject: PHP Path Mapping Help, Please Reply with quote

Breakpoints aren't working in NetBeans 6.8 on Windows 7 running IIS 7. xdebug_break() works, and if I opt to break on first line, it works with some files. For the files that don't work I think it has to do with path mapping, because I rewrite the URLs...

d:\www\admin\customer.php is a page which includes a file: d:\www\inc\order_hist.php

customer.php is accessed via this URL: http://myserver/manage/customer.html (and it gets rewritten to d:\www\admin\customer.php). Breakpoints work in this file.

The include file is accessed as follows:
include_once("d:\www\inc\order_hist.php");
Using relative paths here aren't really an option because there are a gazillion includes written in this manner. FWIW, I have added this inc path to my global include path in NetBeans options.

In my xdebug log I see this:

Code:
<- breakpoint_set -i 521 -t line -s enabled -f file:///D:/www/inc/order_hist.php -n 241
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="521" state="enabled" id="22480001"></response>


...so it looks to me like the breakpoint is being set... but I never see any other details regarding it in the log.

Is there some way I should be defining a mapping for included files like this one? I am unsure as to what I would be using for sever path and project path values - to me they would be the same (d:\www\inc\), but I am wondering if the included file is "seen" differently by xdebug and/or NetBeans...???
Back to top
rcastro



Joined: 08 Mar 2012
Posts: 2

PostPosted: Thu Mar 08, 2012 10:44 am    Post subject: Project Properties -> Run configuration -> Advanced Reply with quote

Hello,

Go to Project Properties -> Run configuration -> Advanced and in Path Mapping add the lines in order to do the mapping.
Suggestion: Use the call stack to have a guide to the directories needing a Path mapping.

Best Regards
Rui Castro
Back to top
emilesilvis



Joined: 28 Nov 2012
Posts: 1

PostPosted: Wed Nov 28, 2012 10:43 am    Post subject: Reply with quote

Hi, I am still struggling with this problem. See all the details at http://stackoverflow.com/questions/13602534/xdebug-ignores-breakpoints-in-netbeans.

Any idea what I'm doing wrong?

In fact, exactly how should those path mappings look like?
Back to top
Geoff Hoffman
Posted via mailing list.





PostPosted: Wed Nov 28, 2012 4:03 pm    Post subject: PHP Path Mapping Help, Please Reply with quote

I've used XDebug successfully for years without ever touching path mapping, but I've never used it for remote debugging.
Back to top
aadhirasharma



Joined: 17 Dec 2012
Posts: 3

PostPosted: Mon Dec 17, 2012 1:20 pm    Post subject: Reply with quote

Thanks for this.....
Back to top
t0iusq



Joined: 05 Sep 2012
Posts: 2
Location: Vietnam

PostPosted: Thu Jan 17, 2013 8:35 am    Post subject: Reply with quote

Check Run configuration -> Advanced Surprised
Back to top
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
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo