System.out.println在Intellij Idea中写入的位置?

时间:2015-07-27 15:02:53

标签: java intellij-idea console output

我找不到消息应该显示的终端。怎么称呼? 我猜它应该在View->工具Windows中,但似乎没有任何工作。这是一个Maven项目,我只能看到GlassFish日志。

3 个答案:

答案 0 :(得分:8)

System.outSystem.err输出将写入RunDebug工具窗口,具体取决于您是以运行还是调试方式启动运行/调试配置。有关详细信息,请参阅https://www.jetbrains.com/idea/help/running-and-debugging.htmlhttps://www.jetbrains.com/idea/help/run-tool-window.html(相同信息位于IntelliJ IDEA Ultimate版本的帮助指南中)。

答案 1 :(得分:2)

在使用Tomcat容器的Java EE应用程序中,如果要查看System.out.println()之类的打印结果,请先转到Run>编辑配置并在左侧菜单中选择您的tomcat服务器,然后打开日志选项卡,并在消息打印到标准输出流时检查显示控制台'

答案 2 :(得分:1)

Click on the below image to figure out.

For running mode:

View -> Tool Windows -> Run

For debugging mode:

View -> Tool Windows -> Debug

You must be on one of the above two states in order to accomplish this action.

How to show the terminal window on IntelliJ

相关问题