Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 514444

Summary: There must be a way to prompt for passwords in the debugger.
Product: [Eclipse Project] JDT Reporter: Steve Owens <steve>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: loskutov
Version: 4.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Steve Owens CLA 2017-03-29 16:50:43 EDT
So there is a long standing bug from which this bug is duplicated.  Basically there are at least 70 votes around the bug where Eclipse returns null for System.console() when running the debugger.

The Eclipse team seems to be punting on this issue offering security concerns as an excuse.  Look the real ask is we want a way that we can prompt for passwords that works consistently in both a real console and the debugger.

This article talks about creating a text device http://illegalargumentexception.blogspot.com/2010/09/java-systemconsole-ides-and-testing.html

Perhaps there is a way that the eclipse debugger can offer access to the same sort of abstraction?
Comment 1 Andrey Loskutov CLA 2017-03-29 16:53:33 EDT
*** Bug 514443 has been marked as a duplicate of this bug. ***
Comment 2 Andrey Loskutov CLA 2017-03-29 16:55:05 EDT
Steve, can you please point to the long standing bug you mentioned?
Comment 3 Eclipse Genie CLA 2019-10-04 15:49:57 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.