[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.php] Re: Error using XDebug

The problem is a change in Java 6 which reports information in XML
differently. I have not moved over to Java 6 yet so had not come across
this change.

Currently the solution would be to run eclipse under Java 5. I will release
an update soon with some fixes in and that will solve this problem in Java 6
as well.

Many thanks for reporting the problem

Dave Kelsey


M. Angst wrote:
Hi,

Thanks for your work! I am looking forward to use PDT with XDebug.

I get an error in the debug perspective in the variables view: 'An internal
error occurred during: "Computing hasChildren"'. I am doing a remote launch. As
long as the variables view is not shown, I can step thruogh the code. When I show the variables view, I get the following error:


!ENTRY org.eclipse.core.jobs 4 2 2007-02-20 22:19:39.203
!MESSAGE An internal error occurred during: "Computing hasChildren".
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: -1
at org.eclipse.php.xdebug.core.utils.Base64.decode(Base64.java:230)
at org.eclipse.php.xdebug.core.model.XDebugStringValue.genValueString(XDebugStringValue.java:47)


at org.eclipse.php.xdebug.core.model.XDebugValue.simpleParseNode(XDebugValue.java:100)

at org.eclipse.php.xdebug.core.model.XDebugStringValue.<init>(XDebugStringValue.java:30)

at org.eclipse.php.xdebug.core.model.XDebugVariable.parseProperty(XDebugVariable.java:78)

at org.eclipse.php.xdebug.core.model.XDebugVariable.<init>(XDebugVariable.java:51)

at org.eclipse.php.xdebug.core.model.XDebugContainerValue.parseData(XDebugContainerValue.java:85)

at org.eclipse.php.xdebug.core.model.XDebugContainerValue.<init>(XDebugContainerValue.java:32)

at org.eclipse.php.xdebug.core.model.XDebugVariable.parseProperty(XDebugVariable.java:90)

at org.eclipse.php.xdebug.core.model.XDebugVariable.<init>(XDebugVariable.java:51)

at org.eclipse.php.xdebug.core.model.XDebugTarget.parseVarResp(XDebugTarget.java:945)

at org.eclipse.php.xdebug.core.model.XDebugTarget.getContextLocalVars(XDebugTarget.java:844)

at org.eclipse.php.xdebug.core.model.XDebugTarget.getAllVars(XDebugTarget.java:887)

at org.eclipse.php.xdebug.core.model.XDebugStackFrame.hasVariables(XDebugStackFrame.java:157)

at org.eclipse.debug.internal.ui.elements.adapters.StackFrameContentAdapter.hasChildren(StackFrameContentAdapter.java:37)

at org.eclipse.debug.internal.ui.viewers.provisional.AsynchronousContentAdapter.computeIsContainer(AsynchronousContentAdapter.java:126)

at org.eclipse.debug.internal.ui.viewers.provisional.AsynchronousContentAdapter$2.run(AsynchronousContentAdapter.java:72)

   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)



Windows XP SP2 with all patches
Java JDK 1.6.0
Eclipse 3.2.1 Build id: M20060921-0945
PDT 0.7, v20070130
php_xdebug-2.0.0rc3-5.2.1.dll
org.eclipse.php.xdebug.core_0.1.3.jar
org.eclipse.php.xdebug.ui_0.1.3.jar

<?php
/*******************************************
Test script to reproduce bug in XDebug
*******************************************/

$a = 1;
$test['foo'] = '';
echo "Hello World<br />\r\n";
?>