XDebug and PDT highlight wrong line in Eclipse

After upgrading to Eclipse 4.4 (Luna) I started having problems debugging PHP files with XDebug. The problem is the code editor would highlight the wrong line when it jumped from one file to the next, but it would move to the correct line after stepping to the next line in the file. I was hoping the problem would be fixed in 4.4.1 (Luna SR1), but the problem got worse and the editor would only highlight the line with the break point and not move at all.

Luckily the bug has been fixed and is available in the PDT night builds, but not as a release yet. To get it add http://download.eclipse.org/tools/pdt/updates/3.3-nightly/ to Eclipse’s available software sites (Preferences -> Install / Update -> Available Software Sites) and install updates (Help -> Check for Updates).

More info here https://www.eclipse.org/forums/index.php/t/823451/

One thought on “XDebug and PDT highlight wrong line in Eclipse

Leave a Reply

Your email address will not be published. Required fields are marked *