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

Bug 445903

Summary: Eclipse PHP : debug do not work (Step Into failed)
Product: z_Archived Reporter: Bertrand GUYONNET <bertrand.guyonnet>
Component: PDTAssignee: Dawid Pakula <zulus>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P2 CC: alt4dev, andrei, david_williams, silviya, zulus
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Debug process can't go to line 4 of the program code none

Description Bertrand GUYONNET CLA 2014-10-03 16:25:47 EDT
I am using Eclipse for PHP Developers (Version: Luna Service Release 1 (4.4.1) Build id: 20140925-1800) and since I installed this last release I can not debug correctly : Step into and Step over still do not work. Before I can debug without any problem in my PHP Eclipse (with XDebug) and since I installed this last release, Debug doesn't work well : even I tried to Step into my code, the debug pointer still stay on the first line. Incomprehensible...

Best Regards


-- Configuration Details --
Product: Eclipse 4.4.1.20140925-1820 (org.eclipse.epp.package.php.product)
Installed Features:
 org.eclipse.platform 4.4.0.v20140925-0400
Comment 1 Bertrand GUYONNET CLA 2014-10-03 16:43:21 EDT
Created attachment 247617 [details]
Debug process can't go to line 4 of the program code

Debug process can't go to line 4 of the program code : it gets stuck on line 3.
Comment 2 David Williams CLA 2014-10-04 21:18:11 EDT
 Bertrand, 

it appears you set the "target milestone" as originator of the bug, but that field is to be set by the committers or project that owns the bug. So, I "unset" it. (This just happened to jump out at me, since we have already shipped version 4.4.1 so it shows up on one of my routine queries as the only bug targeted there). 

But, in fact, I assume that this bug belongs in "PHP" component for them to do diagnosis and hopefully fix, or fix XDebug. It is possible they will discover that something changed in "platform debug" and eventually move it back ... but ... they should take the first look. 

All the above is meant as purely "educational", not criticism .. we all appreciate you taking the time to open the bug and give enough detail that (I hope) allows committers to reproduce the issue.
Comment 3 Dawid Pakula CLA 2014-10-06 08:01:06 EDT
Thank you for a report. Unfortunately it's not PDT 3.3.1 issue.

If you download Luna R and add PDT 3.3.1 only (without upgrade to SR1 - latest version is available on marketplace) everything works fine (highlighting, step filters and more).

When I find which eclipse component introduced this regression / api change I'll move this bug or I'll try introduce workaround patch.
Comment 4 Dawid Pakula CLA 2014-10-06 10:13:17 EDT
I got it. Problem was introduced in eclipse.platform.debug bug 437193 [1], and broke PDT XDebug source lookup.

Now we have to find way to fix it ;)

[1] - http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?h=R4_4_maintenance&id=f20ee4a4727f554203e45cd8c338e52f54960d08
Comment 5 Dawid Pakula CLA 2014-10-06 13:27:09 EDT
Simple patch: https://git.eclipse.org/r/34466
Comment 7 Marjo van Diem CLA 2014-10-07 02:21:57 EDT
Stepping in the debugger works again in PDT 3.3.1.201410062222 (I am runnning with Eclipse 4.5M2 - I20140918-0330).
Thanks for fixing this and fixing it fast, Dawid!
Comment 8 Dawid Pakula CLA 2014-10-10 08:32:10 EDT
*** Bug 446632 has been marked as a duplicate of this bug. ***
Comment 9 Sylvia Tancheva CLA 2015-02-12 10:19:23 EST
As it works OK for some time I'm closing this bug (I verified on latest nightly and it is fine)