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 24280 - Add Watch can suggest incorrect watch to add
Summary: Add Watch can suggest incorrect watch to add
Status: REOPENED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-31 09:38 UTC by iformanek
Modified: 2005-05-16 11:05 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description iformanek 2002-05-31 09:38:03 UTC
The Add Watch dialog suggests to use the word under the 
cursor, but does so even in case something which cannot be 
used as a watch is there (such as Java keywords -
 "int", "void", "import", or numbers)

Suggest to improve the check of the text under the cursor 
and in case it cannot be used, use empty text instead.
Comment 1 Jan Jancura 2002-05-31 10:20:12 UTC
There is possibility to add watch on expression. And I am not sure how
can I check expression correctness. 

This dialog is shared for more languages so Java keywords 
are not correct for debugging Java but may be correct for other
languages. 

=> hard to implement, not correct (we can not do real test of validity)
Comment 2 iformanek 2002-05-31 10:29:30 UTC
I am not sure I would dismiss it this quickly, the language of the
source code is known, and there might be some heuristic to address the
issue of adding words that do not make sense - I do not worry that
much about adding expressions - i.e. a case where the user has to
explicitely select part of code to add an expression - I care more
about the case when there is nothing selected in the editor, and the
word under the cursor is used.  We can do this check when creating
Java package or Java class, I do not understand why we cannot do it in
Java debugger.
Comment 3 Jan Jancura 2002-05-31 14:29:03 UTC
can not fix now, we should create some API for plugins for other
languages. => RFE

Comment 4 Marek Grummich 2002-07-22 09:01:30 UTC
Target milestone was changed from '3.4' to TBD.
Comment 5 Marek Grummich 2002-07-22 09:05:10 UTC
Target milestone was changed from '3.4' to TBD.
Comment 6 Martin Entlicher 2005-05-16 11:05:37 UTC
Scheduling for future, currently not possible to implement.