Bug 565032

Summary: Cannot quickly run expressions from Debug Console
Product: [Eclipse Project] JDT Reporter: Ian Smith <iansmith>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: sarika.sinha
Version: 4.16   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
Screencast of IDEA behavior none

Description Ian Smith CLA 2020-07-07 15:53:03 EDT
Created attachment 283535 [details]
Screencast of IDEA behavior

Overview: There is no quick way to execute one-line expressions in the Debug Console. An option to enable pressing ENTER to immediately execute an entered expression, with SHIFT + ENTER for creating a new line, should be added.

Steps to reproduce: 
1) Open an Eclipse project
2) Debug the project and open the Debug Console
3) Type some expression and hit enter

Actual Results:
A new line is created.

Expected Results:
The entered expression should execute and display the result. Shift + Enter could be used to make a new line instead.

Build Date & Hardware
Build 2020-06 on Windows 10 20H2 (Build 19042.330)

Additional Information: IDEA has this behavior by default in its Evaluate Expression window. A screencast is attatched.
Comment 1 Sarika Sinha CLA 2020-07-08 01:47:03 EDT
In Eclipse you can run Expressions in many ways :
1. Use Debug Shell to write and execute the expression.
2. Use Expression view to add expression and enter
3. Use variables view and use the Display Section