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 203191 - "Evaluate Expression" menu item/window disabled.
Summary: "Evaluate Expression" menu item/window disabled.
Status: RESOLVED WORKSFORME
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2011-10-06 07:09 UTC by Beowulf
Modified: 2015-01-21 20:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows my debugging session, so as to avoid inevitable "stupid user, have you tried all these obvious things?" replies. (299.25 KB, image/png)
2015-01-21 20:56 UTC, drchase
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Beowulf 2011-10-06 07:09:29 UTC
Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_26
Runtime = Java HotSpot(TM) Client VM 20.1-b02

Unable to view "Evaluate Expression" window in any context.  Have tried debugging main project, and stopping at a breakpoint.  The option in the "Debug" menu remains greyed out.
Comment 1 Jiri Kovalsky 2011-10-07 09:03:43 UTC
I have seen this too but couldn't reproduce it. :(
Comment 2 Martin Entlicher 2011-10-11 22:08:38 UTC
I do not think I have ever seen that.
Are the rest of debugger actions enabled? Like step actions? Do you see the green current thread in Debugging window with the stack frames when this happens?
Please provide more information, steps to reproduce would be great.
Comment 3 Beowulf 2011-11-18 16:48:51 UTC
Yes, I can access the step functions in the debugger (into, over, to cursor, continue).  I can stop at breakpoints.  However, the "Evaluate Expression" window/menu item is never available for use.  Shouldn't I be able to use it like an "immediate" window while my application is running in debug mode?  I've never been able to do that, yet.
Comment 4 Martin Entlicher 2012-05-30 13:57:46 UTC
According to the code, the "Evaluate Expression" action is enabled every time there is set a "current thread". This is the bold thread in the Debugging window. It's set automatically to the thread that hits a breakpoint, or can be switched by double-click or "Make Current" action on a desired thread in Debugging window.
Works fine for me in 7.1 and 7.2 builds.
Comment 5 drchase 2015-01-21 20:54:03 UTC
I see the very same bug.

I am stopped at a breakpoint, I have clicked on the "main" thread, yet the option to choose Expression Evaluation remains dim.

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Java: 1.8.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 25.40-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-ea-b20
System: Mac OS X version 10.9.5 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/dr2chase/Library/Application Support/NetBeans/8.0
Cache directory: /Users/dr2chase/Library/Caches/NetBeans/8.0

I can see all the values of all the variables, but I cannot figure out how to type in expressions I would like to evaluate.

I'll add an attachment showing the (visual) state of my debugging session.
Comment 6 drchase 2015-01-21 20:56:28 UTC
Created attachment 151606 [details]
Shows my debugging session, so as to avoid inevitable "stupid user, have you tried all these obvious things?" replies.