Linux_ server _02_ How to look at the Eclipse console output statement on Linux

Source: Internet
Author: User

Under Windows, Tomcat starts with a black window, It is easy to see the function output of System.out.println or ex.printstacktrace, it is very convenient to debug, but in Linux, there is no such window, so we have to debug a certain difficulty.

But in fact Tomcat is a place where we can see these outputs, that is the Catalina.out file in the logs directory!! This file will store all the log information and print information, so no pain can not see the debug output information, look at this file is ok

The above text comes from: How can I view the output of System.out.println when I debug a web app on Linux?

So: We enter the logs directory under Tomcat first on Linux and then enter the command:

Tail-f Catalina.out

To view System.out.println printed statements.

Then how to exit the Catalina.out file, enter the command:

CTRL +  C

Linux_ server _02_ How to look at the Eclipse console output statement on Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.