Zend Debugger and breakpoints [message #54978] |
Wed, 26 September 2007 04:22  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------090408070206060100000301
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
I use pdt 1.0,XP,php5.0.5/apache2.0.59,
and I have problems with Zend debugger...
I use zenddebugger.dll from
http://downloads.zend.com/pdt/server-debugger/ZendDebugger-5 .2.10-cygwin_nt-i386.tar.gz
When I debug,debug session starts, but debugger doesn't stop at breakpoints.
Here is php.ini:
zend_extension_ts=C:/php/ZendDebugger.dll
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always
In phpinfo() everything is regular. I have zend debugger section.
I attached my .log file.
It seems that i have some errors for debugger.
--------------090408070206060100000301
Content-Type: text/plain;
name=".log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename=".log"
!ENTRY org.eclipse.php.debug.core 4 10001 2007-09-26 09:51:41.734
!MESSAGE PHPDebug plugin internal error
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -21
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.model.ServerDebugHa ndler.parsingErrorOccured(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.debugger.RemoteDebu gger.handleNotification(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.communication.Debug ConnectionThread$InputMessageHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
!ENTRY org.eclipse.php.debug.core 4 10001 2007-09-26 09:51:41.734
!MESSAGE PHPDebug plugin internal error
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -21
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.model.ServerDebugHa ndler.parsingErrorOccured(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.debugger.RemoteDebu gger.handleNotification(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.communication.Debug ConnectionThread$InputMessageHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
!ENTRY org.eclipse.php.debug.core 4 10001 2007-09-26 10:06:37.906
!MESSAGE PHPDebug plugin internal error
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -21
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.model.ServerDebugHa ndler.parsingErrorOccured(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.debugger.RemoteDebu gger.handleNotification(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.communication.Debug ConnectionThread$InputMessageHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
!ENTRY org.eclipse.php.debug.core 4 10001 2007-09-26 10:06:37.906
!MESSAGE PHPDebug plugin internal error
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -21
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.model.ServerDebugHa ndler.parsingErrorOccured(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.debugger.RemoteDebu gger.handleNotification(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.communication.Debug ConnectionThread$InputMessageHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
!ENTRY org.eclipse.php.debug.core 4 10001 2007-09-26 10:07:10.203
!MESSAGE PHPDebug plugin internal error
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -21
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.model.ServerDebugHa ndler.parsingErrorOccured(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.debugger.RemoteDebu gger.handleNotification(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.communication.Debug ConnectionThread$InputMessageHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
!ENTRY org.eclipse.php.debug.core 4 10001 2007-09-26 10:07:10.312
!MESSAGE PHPDebug plugin internal error
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -21
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.model.ServerDebugHa ndler.parsingErrorOccured(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.debugger.RemoteDebu gger.handleNotification(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.communication.Debug ConnectionThread$InputMessageHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
!ENTRY org.eclipse.php.debug.core 4 10001 2007-09-26 10:08:38.453
!MESSAGE PHPDebug plugin internal error
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -21
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.model.ServerDebugHa ndler.parsingErrorOccured(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.debugger.RemoteDebu gger.handleNotification(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.communication.Debug ConnectionThread$InputMessageHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
!ENTRY org.eclipse.php.debug.core 4 10001 2007-09-26 10:08:38.453
!MESSAGE PHPDebug plugin internal error
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -21
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.model.ServerDebugHa ndler.parsingErrorOccured(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.debugger.RemoteDebu gger.handleNotification(Unknown Source)
at org.eclipse.php.internal.debug.core.zend.communication.Debug ConnectionThread$InputMessageHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
--------------090408070206060100000301--
|
|
|
|
|
Re: Zend Debugger and breakpoints [message #56797 is a reply to message #56506] |
Thu, 04 October 2007 03:14  |
Eclipse User |
|
|
|
Andrew Thompson wrote:
> Not sure if this helps, but I ran into the same problem myself. I found
> out that it was that the plugin expects the project root to be the http
> root.
>
> My project structure had the http root as a subfolder of the project root.
>
> If the http root isn't the same point as the project root, then the
> plugin can't correctly inform the debugger which file the breakpoint is in.
>
> I ended up hacking the source to make the plugin work at a subfolder level.
"I found
out that it was that the plugin expects the project root to be the http
root.
My project structure had the http root as a subfolder of the project root.
If the http root isn't the same point as the project root, then the
plugin can't correctly inform the debugger which file the breakpoint
is in."
Same thing :-). I completely agree with you.
My http root is different than project root.
httproot = projectroot/webroot
I just try a little hack.
I made new php file which include my actual index.php, and new file is
in projectroot. But this also didn't work.
Can you tell me, please, how you solved this problem?
|
|
|
Powered by
FUDForum. Page generated in 0.02098 seconds