Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 165206

Summary: Debug does not work with non-auto-generated urls
Product: z_Archived Reporter: Ken Chau <gizzar>
Component: PDTAssignee: Shalom Gibly <shalom>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P2 CC: Didier.Moens
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 160456    
Bug Blocks:    

Description Ken Chau CLA 2006-11-20 14:54:01 EST
I have a project "test" with the following structure:

test (project)
 +--index.php

If I wanted to use the debugger, I have to set up a web server to point to:

http://[domain]/test/index.php (auto generated url). 

The breakpoints and other debugging features all work correctly.

However, if I set my document root to /$HOME/workspace/test (yields http://[domain]/index.php), it doesn't match what's auto generated. So then I manually modify that in my debug configuration.

This makes the debugger run, but it doesn't respect the breakpoints.
Comment 1 Fernando Carvalho CLA 2007-06-28 19:51:39 EDT
I think it's happening in my linux box (ubuntu 7.04 / eclipse 3.22).
Using zend debugger it tryes to open the included files with wrong path, ie
/classes/miolo.class (php file)
becomes:
es/miolo.class
loosing 6 characters 
Please, someone reply if there is some workaround.
Thanks
Comment 2 Gadi Goldbarg CLA 2007-07-01 09:43:19 EDT
To make it simple:

In the web server place debug.php at the root
In your eclipse env place the debug.php under a folder --> This will not stop in breakpoints (unless break at first line is selected)
Comment 3 Rodrigo Saboya CLA 2007-07-21 22:31:56 EDT
I don't think the URL is your problem here. Because I was able to make it work with a custom URL, as reported in bug #169575.
Comment 4 Shalom Gibly CLA 2007-08-27 10:02:49 EDT
Implemented a mapping capability that should handle situations where the Apache 
httpd.conf file has an 'Alias' directive. 
This should solve this issue.
Comment 5 Gadi Goldbarg CLA 2007-09-02 16:15:07 EDT
path mapping now supports aliases and works fine