Is there a way to get copy-and-pastable debug output in the Android SDK Emulator?

帅比萌擦擦* 提交于 2019-12-05 02:01:39

Using the DDMS logcat window you can select lines and copy and paste text to other windows.

If you use java.util.logging instead of the Log class you could attach a handler to write the log file out to a text file if that would make things easier. Logcat is still available when using java.util.logging but by default INFO and above is only available.

You could just use the command line logcat utility: adb logcat

Left click on a line, then CTRL + C to copy. If you wan the entire log, CTRL + A to select all, and then CTRL + C. Paste it anywhere you want.

LogCat Rows are called items.

Each item has several attributes. Currently, you can only select one or more items and do the following things:

-Copy with ctrl+c

-Save to a text file using the save button.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!