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

Bug 514443

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 DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: loskutov
Version: 4.7   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Steve Owens CLA 2017-03-29 16:50:35 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

*** This bug has been marked as a duplicate of bug 514444 ***