One more piece of information. I have now been able to use the debugger
with a real now trivial application. But for it to work I need to
restart apache after each request. It is as if the debugger port gets
locked with each request and in the following request the debugger stops
working unless we unblock the port (by restaring apache.)
Like many applications, my application uses a front controller in the
index.php page and all requests are chanelled through this front
controller. Depending on the request one or more files are included
during processing. So the only thing I had to specify was the entry
point for the application (the index.php file), and I can specify break
points in files that are later included by index.php and have the
debugger stop at those break points.
There are evidently still many kinks to work out with debugging but this
is certainly great progress for this project.
Luis Bernardo wrote:
Some more info... Many people before me noticed you can make the
debugging work once, step through the code and see the variables, but
after that you cannot repeat it again. I saw the same...
What I found out in my (linux) system is that if I restart apache and
I have the PHP Browser view open then I can make it work again. Tried
this many times now. So far I have only played with the example script
given in the wiki, and unlike the instruction in the wiki, I do not
uncheck the /Open with DBGSession URL in internal Browser /box even
though I am not using windows. But I do need the PHP Browser window
open for debugging to work.
Luis Bernardo wrote:
I don't know if people are aware, but there are new binaries and
source code for dbg since a few days ago.
I know that some people have had some success with debugging. I was
not among them because I always use the mosts recent version (quite
often the development version) of PHP and the dbg binaries available
were for older versions. Besides that, I had been unable to compile
the sources.
This changed a few days ago. There are binaries up to PHP-5.1.2 and I
was able to compile the new dbg source (in Fedora Core 4). So I
followed the DBG installation instructions in the wiki and the
example worked, both in Windows and Linux (running Eclipse-3.1.2 with
PHPEclispe-1.1.8-CVS). Now, there are certainly many issues to fix
because I cannot make it work all the time, and when it works and I
step through the code for the example, I see that the element zero of
the "aThings" array is changing value with each iteration when it
shouldn't.
If you had tried debugging before and given up maybe now it is a good
time to get the new binaries and try again.
Luis
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Phpeclipse-devel mailing list
Phpeclipse-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/phpeclipse-devel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Phpeclipse-devel mailing list
Phpeclipse-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/phpeclipse-devel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642