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 78765

Summary: Don't accept empty watch expressions
Product: debugger Reporter: Jiri Kovalsky <jkovalsky>
Component: CodeAssignee: issues@debugger <issues>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jiri Kovalsky 2006-06-21 12:57:42 UTC
Development build #200606210200 of NetBeans 5.5
Windows XP, RC build #87 of JDK 1.6

Description:
============
User is allowed to create unlimited number of empty watches when debugger is
running. The expressions are identical [1] and useless [2]. The "New watch
expression" dialog should have some logic when "OK" button is enabled.

Steps to reproduce:
===================
1. Create new Java application project with main class.
2. Add some code to body of main() method e.g. return; and toggle breakpoint at
that line (CTRL+F8).
3. Debug main project (F5).
4. Once the breakpoint is hit press ALT+SHIFT+2 to open Watches view.
5. Right click the view area and invoke "New watch ..." action from popup menu.
6. Just press "OK" button and repeat the same again.
7. You will see that two empty watches show up with ">Encountered "<EOF>" at
line.." values.

Note: Please note that the same mess is possible via "Run|Evaluate
===== Expression..." menu item ("Watch" button).
Comment 1 Martin Entlicher 2006-06-21 14:16:09 UTC
This is already submitted - see issue #64524.

*** This issue has been marked as a duplicate of 64524 ***
Comment 2 Jiri Kovalsky 2006-06-21 14:32:15 UTC
Oh I see, sorry. I should have searched at least once through IssueZilla. :-|