This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 201819 - While debugging tooltips show wrong values (scope error)
Summary: While debugging tooltips show wrong values (scope error)
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-08 14:01 UTC by monk.e.boy
Modified: 2011-10-14 15:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description monk.e.boy 2011-09-08 14:01:55 UTC
$x = 99;
$this->x = 101;
$tmp = $this->x;
$i = 0;          // <-- debugger is currently on this line

Hovering $x shows tip [(int) 99]
Hovering the 'x' of $this->x shows tip [(int) 99] <-- OOOPS!
Hovering the '$this' of $this->x shows the contents of $this OK
Hovering $tmp = [(int) 101]

The tooltip is grabbing the value from the local scope, not the object.

monk.e.boy
Comment 1 Ondrej Brejla 2011-10-12 10:07:11 UTC
Reproducible in 7.1dev.
Comment 2 Ondrej Brejla 2011-10-12 11:53:39 UTC
Fixed in web-main: http://hg.netbeans.org/web-main/rev/63faa72776eb
Comment 3 Quality Engineering 2011-10-14 15:05:23 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/63faa72776eb
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #201819 - While debugging tooltips show wrong values (scope error)