November 20, 2007
Breakpoints in Eclipse's PHP mode
Why are you here? My guess would be that you wanted to find out why breakpoints don't work in Eclipse's PHP perspective - we are talking about PDT here. The debugger works fine if you select "break on first statement", but for some reason breakpoints don't work.
My, I would like to save people from the frustration it can be that your breakpoints in PHP don't work with eclipse. Europa, or 3.3, or whatever it's called.
The thing is, if you under the run/debug configuration, under php-server -> configure, have in the document root field something that looks like http://my.testsite.doesnotwork.no/, then your breakpoints won't work. If, on the other hand, you have something like this: http://my.testsite.doesnotwork.no, then they do work. The slash at the end causes the breakpoints to not work in Eclipse, with PDT.
So, I hope you found this information useful, if you had trouble getting breakpoints to work properly. Hopefully this should be the top item in a search involving eclipse, PDT, and breakpoints that don't work.
Just in case, I link to it from my employer's blog, planet.linpro.no, which according to my colleagues has a ridiculously good ranking in Google.
(This was easier than figuring out where to file a bug report. Hope it helped, if you ... you get the picture.)