View Issue Details

IDProjectCategoryView StatusLast Update
0000459XdebugUsage problems (Wrong Results)public2009-08-06 10:39
ReporterthijsputmanAssigned Toderick 
Status resolvedResolutionduplicate 
Product Version 
Target VersionFixed in Version 
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 Informationjava.lang.NullPointerException
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpStringValue.<init>(
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpVariable.parseProperty(
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpVariable.<init>(
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpContainerValue.parseData(
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpContainerValue.<init>(
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpVariable.parseProperty(
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpVariable.<init>(
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpTarget.parseVarResp(
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpTarget.getContextLocalVars(
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpTarget.getContextAtLevel(
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpTarget.getVariables(
at org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpStackFrame.getVariables(
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getAllChildren(
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getChildCount(
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider.retrieveChildCount(
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider$
TagsNo tags attached.
Operating SystemWindows Vista
PHP Version5.3.0


duplicate of 0000376 closed Fail context for local variable 



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.


2009-08-05 19:48

reporter   ~0001024



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.

Issue History

Date Modified Username Field Change
2009-08-03 00:56 thijsputman New Issue
2009-08-03 00:56 thijsputman Operating System => Windows Vista
2009-08-03 00:56 thijsputman PHP Version => 5.3.0
2009-08-03 00:56 thijsputman Xdebug Version => 2.0.5
2009-08-05 00:40 chrisc Note Added: 0001023
2009-08-05 19:48 soki Note Added: 0001024
2009-08-06 10:38 derick Note Added: 0001026
2009-08-06 10:38 derick Relationship added duplicate of 0000376
2009-08-06 10:38 derick Duplicate ID 0 => 376
2009-08-06 10:38 derick Status new => resolved
2009-08-06 10:38 derick Resolution open => duplicate
2009-08-06 10:38 derick Assigned To => derick
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)