Eclipse opening files with full path when debugging PHP

Go To StackoverFlow.com

14

I have a local PHP server that has xdebug installed alongside eclipse with Xdebug JIT setup. Everything is working great except one significantly annoying problem.

The problem is that every time I hit a breakpoint in my PHP script, Eclipse opens the php file with the full path rather than the workspace-relative one. This creates two files that are open, which isn't a problem except setting breakpoints within the absolute file don't properly display in the code tab (they show up in the breakpoint list though), and setting or removing breakpoints between the different files are path specific - so you can't interact with breakpoints from the other file representation. Also, jumping to a new file opens in the same tab. I would like eclipse to use the tabs I already have open, which i think would happen if it was not using absolute paths to open the files.

I've tried setting up path maps in the PHP server configuration, but they didn't seem to have any effect. I'm open to any suggestions to try.

Thanks!

2012-04-05 22:18
by cyberconte
Which method are you using to initiate the debug, and how have you configured the debug settings - ChristianF 2016-10-13 07:17
did you try https://xdebug.org/wizard.ph - EngineerCoder 2016-12-15 09:48
why don't you use PhpStorm - morteza kavakebi 2017-02-17 14:24


1

You need to set up path mappings to map files of your project to the server running php with x-debug

http://www.eclipse.org/pdt/help/html/path_mapping.htm

2017-03-11 08:45
by xatzistnr
Ads