Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Zend Debugger and breakpoints
Zend Debugger and breakpoints [message #54978] Wed, 26 September 2007 08:22 Go to next message
korso is currently offline korsoFriend
Messages: 4
Registered: July 2009
Junior Member
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 #55006 is a reply to message #54978] Wed, 26 September 2007 08:39 Go to previous messageGo to next message
korso is currently offline korsoFriend
Messages: 4
Registered: July 2009
Junior Member
korso3@gmail.com wrote:
> 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.
>
>
>
>
>
>
Some addition to my prev post ...
When I "uncheck" in debugger tab option "Break at first line"
debugger doesn't stop at all.
Re: Zend Debugger and breakpoints [message #56506 is a reply to message #54978] Tue, 02 October 2007 17:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: at465.msn.com

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.
Re: Zend Debugger and breakpoints [message #56797 is a reply to message #56506] Thu, 04 October 2007 07:14 Go to previous message
korso is currently offline korsoFriend
Messages: 4
Registered: July 2009
Junior Member
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?
Previous Topic:Identical files when debugging with xdebug in PDT 1.0
Next Topic:incorrect xdebug launch url
Goto Forum:
  


Current Time: Tue Apr 23 11:24:09 GMT 2024

Powered by FUDForum. Page generated in 0.03792 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top