简体   繁体   中英

How to send input in the debug mode of IDEA IntelliJ?

In IntelliJ IDEA, I couldn't send input while the debug mode reaches the line

String i = in.nextLine();

which is waiting for user input.

==============================================

The screenshot is as follows.

程序阻塞等待标准输入时无法执行任何操作

Looks like your console is hidden in debug mode. See the right most icon with > symbol right next to profiler. click on it and it must open the console.

在此处输入图像描述

Another way is right click on Debugger and choose Layout and check mark Console .

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM