Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.out.println where does it write to in Intellij Idea?

Tags:

I can't find the terminal where the message is supposed to show. How is it called? I'm guessing it should be in View->Tool Windows but nothing from there seems to work. It's a Maven project and all I can see is GlassFish log.

like image 734
Greyshack Avatar asked Jul 27 '15 15:07

Greyshack


People also ask

How do I get output in IntelliJ?

Open settings by pressing Ctrl+Alt+S , navigate to Tools | Database | Query Execution | Output and Results.

What is the fastest way to write system out Println in IntelliJ?

There are two eclipse shortcuts, you can use to write System. out. println. You can type sout and press tab to autocomplete it.

How do you write SYSO in IntelliJ?

Now you can hit ctrl + spacebar and expand the live templates. Now, to change it to "syso" instead of "sout", in the Live Templates option, theres a list of tons of options checked, go to "other" and expand it, there you wil find "sout", just rename it to "syso" and hit aply. Hope this can help you.


2 Answers

System.out and System.err output is written to either the Run or the Debug tool window depending on whether you launch the run/debug configuration as Run or Debug. See https://www.jetbrains.com/idea/help/running-and-debugging.html and https://www.jetbrains.com/idea/help/run-tool-window.html for more information (Same information is in the Help guide of the IntelliJ IDEA Ultimate version).

like image 194
Javaru Avatar answered Sep 20 '22 06:09

Javaru


In Java EE applications with Tomcat container, if you want to see the result of prints like System.out.println(), first go to Run > Edit Configurations and select your tomcat server in the left menu, then open Logs tab and check 'Show console when a message is printed to standard output stream'

like image 38
Hamid Mohayeji Avatar answered Sep 23 '22 06:09

Hamid Mohayeji