use VS Code to debug Java program, need to use the console input, the results have been error, find a solution
error:
add a line "console": "externalTerminal"
for
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Launch)-main<test>",
"request": "launch",
"mainClass": "main.main",
"projectName": "test",
"console": "externalTerminal"
}
]
}
works as follows:
this error occurs because the built-in debugging console of VSCode does not support Java input. So you need to modify the debug console in the Debug configuration file, just change the console property to externalTerminal. External terminal.
Read More:
- [tools] vscode debug report G + +. Exe no such file or directory fatal error no input files
- Solve the problem of vscode window console “flash”
- Vscode setting console. Log () shortcut method
- Solve the problem that data cannot be input in idea console
- CMD input Java error could not create the Java virtual machine
- Vscode cnpm: unable to load file, but open console with CMD without error
- Float: 99: input / output error appears in vscode SSH plug-in
- zookeeper Failed to Startup: Error: JAVA_HOME is not set and java could not be found in PATH
- Error:Failed to notify project evaluation listener.
- Vscode Terminal Cannot Input & Blank [How to Solve]
- After node.js is installed, use the instruction node version in vscode to show that it is not an external or internal instruction. The solution is as follows:
- Multithreading: when doing unit test, use thread pool to find that the specified code is not running and skip directly
- “Input button submit is not setup” solution
- The solution of windows not flashing back when visual studio console program is running
- Solve the problem of testing redis cluster“ java.lang.NumberFormatException : For input string: “ [email protected]@17002 “And so on
- Solve the problem of error running console reported by pycharm Python console
- CONDITIONS EVALUATION REPORT
- [Solved] Mac ES Startup Error: Exception in thread “main“ java.nio.file.NotDirectoryException
- Could not find appears when JDK is configured java.dll Could not find Java se runtime environment problems
- vscode import numpy error:DLL load failed: The specific module could not be found