Bug 565032 - Cannot quickly run expressions from Debug Console
Summary: Cannot quickly run expressions from Debug Console
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.16   Edit
Hardware: PC Windows 10
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-07 15:53 EDT by Ian Smith CLA
Modified: 2020-07-08 01:47 EDT (History)
1 user (show)

See Also:


Attachments
Screencast of IDEA behavior (495.85 KB, video/mp4)
2020-07-07 15:53 EDT, Ian Smith CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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