-
Notifications
You must be signed in to change notification settings - Fork 29
Not able to capture user input on internal terminal when debugging JAVA file #71
Comments
From @roblourens on September 10, 2017 19:25 I'm not sure what you mean by "VS Terminal won't be able to capture those inputs." Is that because it's not running the app in the integrated terminal? If so, this is a feature request for the extension. |
VS terminal is the internal terminal of VS code. I've set the externalConsole": to false in launch.json but still i can't type anything in the terminal , i only see outputs of print statements. I'm not sure if this is the bug on extension side or your side. Your call. |
From @roblourens on September 11, 2017 17:20 Is it running in the terminal or the "debug console"? |
when I debug a java file:
but i can't provide user input here. In debug console i see the program output ( i.e. |
VS Code does take user inputs from internal terminal when we "run" the code (Java,c++, python etc). The problem comes when we "debug" the code. |
From @weinand on September 13, 2017 9:53 Please move the issue to the repository of the Java debugger you are using. VS Code provides no built-in Java functionality, so we do not know what the problem is. You can move the issue with this tool: https://github-issue-mover.appspot.com |
Hi, seems like this issue is related to the java debugger extension. So I moved it from Microsoft/VSCode to your repo. Could you please take a look. |
Please, next time comment just one, because one comment is one mail, I was a bit scared to see so many mails 😅 And yeah, Java Debugger doesn't support integrated terminal yet, if you want to contribute send a PR 😄 |
Didn't mean to scare you :D Actually, I used some issue migrator tool to migrate this issue from Microsoft repository and it included previous comments too, hence the email bombardment :P |
@faustinoaq supporting the VS Code integrated terminal is trivial since VS Code is doing all the heavy lifting for you. From the debug adapter just use the "runInTerminalRequest" and pass the command line arguments. See here how this is done for node-debug. |
Oh, I see. Thanks you for the node-debug reference 👍 |
Keep discussion here 👉 #67 |
From @JerryGoyal on September 10, 2017 6:45
Steps to Reproduce:
Note: External console i.e. cmd works fine if I choose it to "externalConsole": true but not internal terminal.
Copied from original issue: microsoft/vscode#34091
The text was updated successfully, but these errors were encountered: