View Issue Details

IDProjectCategoryView StatusLast Update
0000459XdebugUncategorizedpublic2009-08-06 10:39
Reporterthijsputman Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionduplicate 
Summary0000459: Fail to retrieve context for local variable
Description

== This might be a duplicate of 0000376. Sorry for this, but I can't seem to add a note to the existing issue. ==

Confirming that the issue in 0000376 doesn't appear to be resolved in my setup. I'm running Xdebug 2.0.5 (php_xdebug-2.0.5-5.3-vc9-nts) in conjunction with PHP5 (also VC9, NTS). Debugging from within Eclipse 3.5 with PDT 2.1 installed.

When debugging the test-case provided in 0000376:0000856, Eclipse complains that "child count update" failed. A full stack-trace is provided in the additional information section below.

I've put a breakpoint at the "$local = 10" statement and use "Step Into" from there. The problem seems to occur once a reference is maded to a previously initialised variable.
Assigning "$local = 10" and "$newone = new child()" works, but once $local is updated the error occurs. If you comment out "$local += 10", the error occurs on the next line, where $this is first referenced. Commenting out both lines results in the error being generated after "$obj->create()" is called on the last line...

Testing is somewhat cumbersome as Eclipse needs to be closed and restarted between every test. Once the "child count update" fails, no further errors are generated; neither is the "Variables" view updated in Eclipse.

Additional Information

java.lang.NullPointerException
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpStringValue.<init>(DBGpStringValue.java:39)
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpVariable.parseProperty(DBGpVariable.java:75)
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpVariable.<init>(DBGpVariable.java:44)
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpContainerValue.parseData(DBGpContainerValue.java:97)
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpContainerValue.<init>(DBGpContainerValue.java:37)
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpVariable.parseProperty(DBGpVariable.java:83)
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpVariable.<init>(DBGpVariable.java:44)
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpTarget.parseVarResp(DBGpTarget.java:1210)
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpTarget.getContextLocalVars(DBGpTarget.java:1123)
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpTarget.getContextAtLevel(DBGpTarget.java:1177)
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpTarget.getVariables(DBGpTarget.java:1158)
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpStackFrame.getVariables(DBGpStackFrame.java:148)
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getAllChildren(StackFrameContentProvider.java:51)
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getChildCount(StackFrameContentProvider.java:28)
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider.retrieveChildCount(ElementContentProvider.java:114)
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider$2.run(ElementContentProvider.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

TagsNo tags attached.
Operating SystemWindows Vista
PHP Version5.3.0

Relationships

duplicate of 0000376 closed Fail context for local variable 

Activities

chrisc

2009-08-05 00:40

reporter   ~0001023

I get the same problem as 0000376 and I'm running xdebug 2.0.5 on OS X 10.5.6 with PHP 5.3.

soki

2009-08-05 19:48

reporter   ~0001024

fyi:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=285371

derick

2009-08-06 10:38

administrator   ~0001026

Duplicate of 0000376 — My mistake, this is only in HEAD (2.1-dev) and not in 2.0.5.