Opened 4 years ago
Closed 18 months ago
#783 closed Bugs (fixed)
Multiple source files with the same name but different paths are mishandled
| Reported by: | iandall | Owned by: | incastrix |
|---|---|---|---|
| Priority: | 1 | Milestone: | |
| Component: | XDebug | Version: | 1.2.1 |
| Keywords: | non-unique filename instruction pointer | Cc: |
Description
If you are remote debugging (xdebug) a project with (for example) files:
project/index.php
project/module_1/index.php
project/module_2/index.php
Then phpeclipse gets very confused about which file has the current instruction pointer in the editor pane. The debug backtrace shows the correct pathnames perfectly, so phpeclipse knows the correct path.
Double clicking on any lines in the backtrace which refer to one of the index.php files always switches to the first index.php opened. For any other files (which have unique file names within the project), double clicking the lines on the traceback works perfectly to open the correct file (if it is not already open) and display the instruction pointer position in it. Similarly stepping through calls to code in different files works correctly when the filenames are unique, but not if the filenames are the same.
It seems like somewhere a filename (or perhaps the tab name) is being compared, when the full path should be compared.
I am not sure if the same behaviour occurs with local debugging.
Change History (2)
comment:1 Changed 4 years ago by ed_mann
- Component changed from PHP Editor to XDebug
- Owner set to incastrix
comment:2 Changed 18 months ago by robekras
- Resolution set to fixed
- Status changed from new to closed
![(please configure the [header_logo] section in trac.ini)](/chrome/site/eclipsebutton_med.png)
I take it you are using XDebug, if not please let me know and i will update accordingly.