Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exit adb logcat

Tags:

android

The following terminal command shows the logcat.

$> $SDK/platform-tools/adb logcat 

But how do I get out of it to go back to the terminal prompt? I tried kill-server, exit etc.

like image 839
OceanBlue Avatar asked Sep 19 '11 18:09

OceanBlue


People also ask

How do I exit adb?

To exit adb and return to the system shell use the $q or $Q command.

How do I pause Logcat?

you just click on the line three times and you can selectd the line , it will stops scrolling.

What is adb Logcat command?

Android logcat is a command-line tool that dumps a log of system messages, including stack traces when the device throws an error and messages that are written by applications with the "Log" class.

How do I restart Logcat?

Solution 1: Restarting Logcat You need to press Alt + 6 twice to restart the Logcat. Restarting logcat often helps when it becomes irresponsive.


2 Answers

Ctrl + C

like image 99
Cristian Avatar answered Oct 04 '22 10:10

Cristian


Using -d option will get you a one-time run of logcat.

adb logcat -d 

Instead of looping, it will go back to command prompt after it prints out all the logs from log buffer. Each time you use this command, it always starts from the beginning of log buffer, unless you input the command below to clean the logs in log buffer:

adb logcat -c 

The command above is to clean the logs in logcat buffer.

like image 25
Mega Chang Avatar answered Oct 04 '22 09:10

Mega Chang