简体   繁体   English

如何在 IDEA IntelliJ 的调试模式下发送输入?

[英]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在 IntelliJ IDEA 中,当调试模式到达该行时,我无法发送输入

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 .另一种方法是right click on Debugger and choose Layout and check mark Console

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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