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.
Steps to reproduce: 1. Open generated servlet for JSP. 2. Add breakpoint and start debugger. 3. Wait while debugger stops on breakpoint. 4. Select some line of code (for example, use "int i = 5;") and press Ctrl+Shift+F7 to open New Watch dialog. 5. Press OK button. Result: watch "int i = 5; = >Lexical error..." appear in Watches window. Expected result: IDe should warn user, about incorrect value of watch. P.S. Also, it's allowed to add empty watch. To reproduce: open New Watch dialog, do not fill "name" field and press OK button. IDE should warn user about empty string. Reproduced with Nevada build 030502.
It is allowed to add one watch many times too. It is not a bug but debugger can check duplicate watches and either block a new watch or show a warning message.