NetBeans Forums
| View previous topic :: View next topic |
| 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
-> <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
|
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 |
|
| Back to top |
|
 |
emilesilvis
Joined: 28 Nov 2012 Posts: 1
|
|
| Back to top |
|
 |
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. |
|
| Back to top |
|
 |
aadhirasharma
Joined: 17 Dec 2012 Posts: 3
|
Posted: Mon Dec 17, 2012 1:20 pm Post subject: |
|
|
| Thanks for this..... |
|
| Back to top |
|
 |
t0iusq
Joined: 05 Sep 2012 Posts: 2 Location: Vietnam
|
Posted: Thu Jan 17, 2013 8:35 am Post subject: |
|
|
Check Run configuration -> Advanced  |
|
| 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
|
|