Detailed introduction to the Eclipse console Console instructions

1. Description

This article introduces the usage instructions of the Eclipse console console in detail.
When debugging, check the logs through the console.
Sometimes the logs above are too many to find, and
sometimes several consoles will pop up uncontrollably.
Please refer to this article.
Through Adjust the Eclipse console
to view logs and locate problems more efficiently and conveniently.

2. Open the console

Sometimes the console is accidentally closed,
the method to open the Eclipse console is
Eclipse -> Windows -> Show View -> Console


或者:
Eclipse -> Windows -> Show View -> Other... -> General -> Console


After opening the console,
if you find that the location of the console is not the default location,
you can reset the Eclipse view:
Eclipse -> Windows -> Perspective -> Reset Perspective...


3. Open the Console settings

Right click on the blank space of the Console window -> Preferences....



Note that it needs to be an open console
with log output,
otherwise the empty console cannot be right-clicked.


或者:
Eclipse -> Windows -> Preferences -> Run/Debug -> Console


4. Set the console to limit the number of log lines

Open the Console settings and
uncheck the Limit console output.
Or set console buffer size(characters) and
set its value to be large enough.

5. Close the console to automatically jump out

When there is a project running in Eclipse,
when the log standard and error output are printed to the console,
the console will be automatically popped up, which
will greatly affect the coding or locate the problem.

Solution steps, open the Console settings,
the console will pop up when the standard output of the program is closed:
uncheck "Show when program writes to standard out"

Pop up the console when a program error is thrown:
uncheck "Show when program writes to standard error"

These two functions can also be clicked directly on the right side of the console.
After the first click, the selected state will take effect, and
after the second click, the unselected will not take effect.

6. Close the running program

The red box on the right side of the console Terminate:


7. Close the console

The gray cross on the right side of the console is Remove Launch.
Note that only the console that has been terminated can be closed.

The two crosses on the right side of the console together, Remove All Terminated Launches,
can close the consoles of all terminated programs.

8. Clean up the console

There is a cross sign Clear Console in the lower right corner of the text on the right side of the console, which
can clear the logs that have been output by the console,
so that you can easily view new log output.

9. Log Scroll Lock

The Scroll Lock window with a lock on the right side of the console
can prevent page scrolling caused by the continuously output logs, which
is very convenient when viewing the above logs.

10. Log wrapping

The text on the right side of the console has a carriage return Word Wrap.
When the output log is too long,
it will wrap the line beyond the display range of the console window,
so that the log can be displayed completely.

11. Lock the current console

The Pin Console with a thumbtack on the right side of the console
is used to lock the current console.
When other consoles have log output,
they will not switch to other consoles.

12. Switch consoles

The small computer Display Selected Console on the right side of the console,
when there are multiple consoles,
you can use this to switch between different consoles.


13. Maven Console

There is a plus sign in the upper right corner of the small window on the right side of the console.
After clicking it, there are 5 options.
Select 5 Maven Console,
the following interface will be opened, and
some information of the Maven console will be output,
mainly the command records executed by Maven.
This is generally used There are very few:


However, the controller corresponding to the program will also output the following information,
mainly the program-related logs output by Maven:


14. Copy output log

The two overlapping text boxes on the right side of the console, Copy Text with escapes,
can use escape to copy all the logs output by the console.
When you want to copy all the output logs of the console,
you don’t have to use the mouse to select and copy them.

1. Description

This article introduces the usage instructions of the Eclipse console console in detail.
When debugging, check the logs through the console.
Sometimes the logs above are too many to find, and
sometimes several consoles will pop up uncontrollably.
Please refer to this article.
Through Adjust the Eclipse console
to view logs and locate problems more efficiently and conveniently.

2. Open the console

Sometimes the console is accidentally closed,
the method to open the Eclipse console is
Eclipse -> Windows -> Show View -> Console


或者:
Eclipse -> Windows -> Show View -> Other... -> General -> Console


After opening the console,
if you find that the location of the console is not the default location,
you can reset the Eclipse view:
Eclipse -> Windows -> Perspective -> Reset Perspective...


3. Open the Console settings

Right click on the blank space of the Console window -> Preferences....



Note that it needs to be an open console
with log output,
otherwise the empty console cannot be right-clicked.


或者:
Eclipse -> Windows -> Preferences -> Run/Debug -> Console


4. Set the console to limit the number of log lines

Open the Console settings and
uncheck the Limit console output.
Or set console buffer size(characters) and
set its value to be large enough.

5. Close the console to automatically jump out

When there is a project running in Eclipse,
when the log standard and error output are printed to the console,
the console will be automatically popped up, which
will greatly affect the coding or locate the problem.

Solution steps, open the Console settings,
the console will pop up when the standard output of the program is closed:
uncheck "Show when program writes to standard out"

Pop up the console when a program error is thrown:
uncheck "Show when program writes to standard error"

These two functions can also be clicked directly on the right side of the console.
After the first click, the selected state will take effect, and
after the second click, the unselected will not take effect.

6. Close the running program

The red box on the right side of the console Terminate:


7. Close the console

The gray cross on the right side of the console is Remove Launch.
Note that only the console that has been terminated can be closed.

The two crosses on the right side of the console together, Remove All Terminated Launches,
can close the consoles of all terminated programs.

8. Clean up the console

There is a cross sign Clear Console in the lower right corner of the text on the right side of the console, which
can clear the logs that have been output by the console,
so that you can easily view new log output.

9. Log Scroll Lock

The Scroll Lock window with a lock on the right side of the console
can prevent page scrolling caused by the continuously output logs, which
is very convenient when viewing the above logs.

10. Log wrapping

The text on the right side of the console has a carriage return Word Wrap.
When the output log is too long,
it will wrap the line beyond the display range of the console window,
so that the log can be displayed completely.

11. Lock the current console

The Pin Console with a thumbtack on the right side of the console
is used to lock the current console.
When other consoles have log output,
they will not switch to other consoles.

12. Switch consoles

The small computer Display Selected Console on the right side of the console,
when there are multiple consoles,
you can use this to switch between different consoles.


13. Maven Console

There is a plus sign in the upper right corner of the small window on the right side of the console.
After clicking it, there are 5 options.
Select 5 Maven Console,
the following interface will be opened, and
some information of the Maven console will be output,
mainly the command records executed by Maven.
This is generally used There are very few:


However, the controller corresponding to the program will also output the following information,
mainly the program-related logs output by Maven:


14. Copy output log

The two overlapping text boxes on the right side of the console, Copy Text with escapes,
can use escape to copy all the logs output by the console.
When you want to copy all the output logs of the console,
you don’t have to use the mouse to select and copy them.

Guess you like

Origin blog.csdn.net/qq_44543774/article/details/131307540