# NetBeans Forums

 FAQ   Search   Memberlist   Register

Author Message
Matteus

Joined: 04 May 2010
Posts: 1

Posted: Tue May 04, 2010 2:50 am    Post subject: PHP Path Mapping Help, Please

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 ->

...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...???
rcastro

Joined: 08 Mar 2012
Posts: 2

 Posted: Thu Mar 08, 2012 10:44 am    Post subject: Project Properties -> Run configuration -> Advanced 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
emilesilvis

Joined: 28 Nov 2012
Posts: 1

 Posted: Wed Nov 28, 2012 10:43 am    Post subject: 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?
Geoff Hoffman
Posted via mailing list.

 Posted: Wed Nov 28, 2012 4:03 pm    Post subject: PHP Path Mapping Help, Please I've used XDebug successfully for years without ever touching path mapping, but I've never used it for remote debugging.

Joined: 17 Dec 2012
Posts: 3

 Posted: Mon Dec 17, 2012 1:20 pm    Post subject: Thanks for this.....
t0iusq

Joined: 05 Sep 2012
Posts: 2
Location: Vietnam

 Posted: Thu Jan 17, 2013 8:35 am    Post subject: Check Run configuration -> Advanced
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT Page 1 of 1

 Jump to: Select a forum Lists----------------NetBeans UsersJava EE Users Ajax UsersSOA UsersJava ME UsersProfiler UsersRuby UsersPHP UsersC/C++ UsersNetBeans DevelopersNetBeans Platform Users Web Client UsersNetBeans Community Corner
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