| Summary: | [Debugger] missing $this variable in 'Variables' window | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Roy Ganor <ganoro> | ||||
| Component: | PDT | Assignee: | PHP Debug <php.debug-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | Ilina Stefanova <ilina.s> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipse-01, ilina.s | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 183629 [details]
patch
applied the patch Verified. |
During debugging I cannot see, in the 'Variables' window, the value of variables that are attributes of a class. E.G. two programs, a.php, which requires b.class.php a.php ----------------- <?php require_once "b.class.php"; $instance = new b; $instance->doSomething(); exit; ?> b.class.php ------------------ <?php class b { public $varOne; private $varTwo; public function doSomething() { $this->varOne = simplexml_load_file("http://someUrl.com/somefile.xml"); $this->varTwo = "some val"; $local = "some other var"; ..... more stuff here ... } } ?> In the above example, when I have the prog running in debug (by using the "debug" toolbar option on my firefox browser) and I am stepping through the entire thing line by line, the debugger nicely steps from a.php into b.class.php. As I step through the method doSomething() I cannot see how to 'see' the assigned value of $this->varOne. I can see the locally scoped variable "$local", but I cannot find a way to see what the value of $this->varOne is .. When I am in 'a.php' I can see the local object $instance, and from there I can see the attributes, but that is no use when I am actually in the class file itself. Obviously this is a bit of a problem as that, for me, is half the point of having a debugger .... :(