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 165818 - Variables show a value, but a watch of the same variable is empty
Summary: Variables show a value, but a watch of the same variable is empty
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-22 13:59 UTC by Vojtech Sigler
Modified: 2009-05-29 15:45 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (66.84 KB, text/plain)
2009-05-22 14:00 UTC, Vojtech Sigler
Details
Sorry, previously attached as text (66.84 KB, image/png)
2009-05-22 14:06 UTC, Vojtech Sigler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vojtech Sigler 2009-05-22 13:59:36 UTC
Product Version: NetBeans IDE Dev (Build 200905220201)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Linux version 2.6.28-11-generic running on i386; UTF-8; en_US (nb)

When I start debugging an ant target and create a watch, it is empty. However, in the Variables view, the same variable
which is in the watch shows the value correctly.

Steps to reproduce:

1) create an AnagramGame project (samples->java)
2) create a watch "ant.project.name"
3) invoke Debug Target -> clean in the files view on the build.xml node
4) switch to Variables view and enable watches inside this view
5) now, ant.project.name as variable has value "anagrams", but the watch is empty

See attached screenshot.
Comment 1 Vojtech Sigler 2009-05-22 14:00:29 UTC
Created attachment 82647 [details]
Screenshot
Comment 2 Vojtech Sigler 2009-05-22 14:06:37 UTC
Created attachment 82649 [details]
Sorry, previously attached as text
Comment 3 Vojtech Sigler 2009-05-22 14:54:52 UTC
P2 -> needs to be fixed in 67
Comment 4 Martin Entlicher 2009-05-22 17:06:10 UTC
Reproduced.
Comment 5 Martin Entlicher 2009-05-22 18:46:12 UTC
This bug possibly affects other non-Java debuggers as well.
Fixed in changeset:   133181:53a2af7f7c32
http://hg.netbeans.org/main/rev/53a2af7f7c32
Comment 6 Quality Engineering 2009-05-23 06:59:40 UTC
Integrated into 'main-golden', will be available in build *200905230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/53a2af7f7c32
User: mentlicher@netbeans.org
Log: #165818 - Translate the column names for watches.
Comment 7 Vojtech Sigler 2009-05-25 09:30:31 UTC
Problem is fixed in ant debugger (PHP - ok, cnd - ok), but it persists in ruby. Reassigning to ruby debugger.
Comment 8 Filip Zamboj 2009-05-25 14:37:53 UTC
as Vojta mentioned => stopper for FCS. 

Comment 9 Erno Mononen 2009-05-26 09:53:12 UTC
It seems that watches don't work at all with the Ruby debugger now, possibly due to the fact that WatchesModel (in 
ruby.debugger) doesn't handle WATCH_TO_STRING_COLUMN_ID for Watch nodes.
Comment 10 Erno Mononen 2009-05-26 11:10:32 UTC
Fixed in http://hg.netbeans.org/ruby-main?cmd=changeset;node=5f585ad855a2. 

mentlicher, could you please review the fix so that we can get it to 6.7? Thanks.
Comment 11 Marian Mirilovic 2009-05-26 15:05:28 UTC
so keep open until it's fixed in release67
Comment 12 Marian Mirilovic 2009-05-26 15:11:45 UTC
Vojta/Filip ... could you please verify in http://deadlock.netbeans.org/hudson/job/ruby/2749/ ?

Martin/Erno, would be nice to have this integrated into release67 today (ASAP). Thanks in advance.

Comment 13 Filip Zamboj 2009-05-26 15:19:54 UTC
sure .. downloads take more than 20minutes at the moment :(
Comment 14 Erno Mononen 2009-05-26 15:29:25 UTC
I can integrate the fix once it has been verified and reviewed, I'm just in the process of cloning release67.
Comment 15 Vojtech Sigler 2009-05-26 15:29:27 UTC
I downloaded a corrupt copy, another should finish in about 4 minutes...

Filip, will you look at it or should I when the download's done?
Comment 16 Filip Zamboj 2009-05-26 15:34:46 UTC
Erno, I definitely will have a look on it in couple of minutes. 
Comment 17 Filip Zamboj 2009-05-26 15:52:31 UTC
verified in provided build. Resolution will be changed to verfied once it's verified in RC1 
Comment 18 Martin Schovanek 2009-05-26 16:10:08 UTC
Fix verified in continuous build by QE.
Comment 19 Quality Engineering 2009-05-27 07:26:20 UTC
Integrated into 'main-golden', will be available in build *200905270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5f585ad855a2
User: Erno Mononen <emononen@netbeans.org>
Log: #165818: Variables show a value, but a watch of the same variable is empty
Comment 20 Martin Entlicher 2009-05-27 09:23:32 UTC
The fix is safe, reviewed.
Comment 21 Erno Mononen 2009-05-27 14:27:17 UTC
Transplanted to release67: http://hg.netbeans.org/release67/rev/b20203b4b385
Comment 22 Martin Schovanek 2009-05-29 15:45:55 UTC
Verified in release67 by QE.