[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.php] Re: Problems with PDT and Xdebug

Dave Kelsey wrote:
[snip]

XDebug requires that you specify the absolute file location that you want
the breakpoint set on. Within Eclipse you set a breakpoint on a file in
your workspace. The absolute name of this file is used when informing xdebug
of the file that has the break point. If apache is then executing a copy of
that file but is in a different location, xdebug won't stop because the break
point is set on the file in your workspace, not the file executing in PHP under
apache.


The pathmapper version was provided by someone else by modifying my original code
plus adding some extra gui bits. The idea was to allow you to create a map between
the code in your workspace and the code running in apache such that the break point
is set on the correct file.


I had planned to work on support which allows for scripts executing in apache which
were not the same files as the ones in your workspace but I have not had time. The
idea would be for it to work in conjunction with the "publish" capabilities of PDT
but as there has been churn in that area of PDT I didn't want to go down that route
until PDT stablised.


I hope this explains how the xdebug implementation currently works so that you can
find a solution for getting it to break at break points when running in apache. If
you don't want to have htdocs point to your workspace you could trying using the pathmapper
function as you have downloaded the pathmapper version. I have not looked at this
version myself so cannot help you with using it.





[snip]

Thank you Dave for all you efforts with the Eclipse PHP Xdebug implementation and for helping me along the way.

--
Thanks in Advance...           http://weconsultants.prophp.org
IchBin, Pocono Lake, Pa, USA   http://ichbinquotations.awardspace.com
______________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)