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.
Open settings by pressing Ctrl+Alt+S , navigate to Tools | Database | Query Execution | Output and Results.
There are two eclipse shortcuts, you can use to write System. out. println. You can type sout and press tab to autocomplete it.
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.
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).
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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With