| Summary: | Variables View is not updated after changing value | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Toshihiro Izumi <euthanasia_waltz> | ||||
| Component: | PDT | Assignee: | moshe <moshe> | ||||
| Status: | CLOSED FIXED | QA Contact: | Yossi Luson <yossi.l> | ||||
| Severity: | normal | ||||||
| Priority: | P2 | Keywords: | plan | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Toshihiro Izumi
Created attachment 53274 [details]
screenshots
Some more details and samplecode:
#b# is a breakpoint
class cTest{
var $myName;
var $mySurname;
public function cTest($name,$surname){
$this->myName = $name;
$this->mySurname = $surname;
}
}
#b# $TC = new cTest("M","S");
Problem:
Run to brakpoint
step into constructor and watch $this->myName and $this->mySurname
Both seem to remain "null". Switch to another tab(Expressions for example) and back to Variables, the values now displayed are correct.
replace the follopwing methods in PHPVariable:
public IValue getValue() throws DebugException {
// fix bug 163509 - Variables View is not updated after changing value.
// we sync the variables from the monitor which refreshes the VariablesView with
// the ExpressionManager cached variables with updated values.
if (!global) {
((PHPDebugTarget)getDebugTarget()).getExpressionManager().update(variable, 2);
pValue.updateValue(variable.getValue());
}
hasChanged = false;
return pValue;
}
public int hashCode() {
int valueHash = 0;
valueHash = pValue.hashCode();
return getDebugTarget().hashCode() + valueHash+ variable.getFullName().hashCode();
}
Applied the patch. Thanks Moshe! Yosi.l: fixed - should test on latest build fixed Reopening this bug since the solution might cause communication problems when dealing with large variables trees and slow connection. Please retest. I removed the previous fix and it appears that the Eclipse 3.3 Europa does not have this refresh issue. closing this bug after verifing it on a multie vlaues file |