Enable internal registration in Android WebKit emulator?

For example, this file contains logging instructions:

http://hi-android.info/src/android/webkit/CacheManager.java.html

Log.w () etc.

They do not seem to appear in the LogMan output, although the level of detail is correct. Since this is system software, I suspect that these registrations are disabled by default.

How can I include them in an Android emulator? Need a rebuild?

I need this information to debug some caching issues only with Android WebKit.

+4
source share
1 answer

here is the solution for this king of logging / tracing.

I assume you are using Eclipse and ADT. For the command line, the approach is similar. First find your process id (pid), then look at LogCat for that pid with the specified level.

Steps for Eclipse:

  • run the emulator, open the application, which you will see in the form of traces. in my example it is com.android.browser, but you can use any application you want.
  • in Eclipse use Window -> Show View -> Other ... -> Android -> Devices this will open the Android device tool and show you a list of processes with their identifiers (pid)
  • Find your process and remember its pid. Let's say pid = 293
  • Open the LogCat tool (Window → Show View → Other ... → Android → LogCat)
  • Click + (create a filter)
  • enter the name of the filter (My custom filter); leave "by log tag" blank; enter the pid you remember into "pid"; enter "by log level" (Verbose); click ok

this will create another tab in the LogCat window and show only traces of this particular process that you have selected. Hope this helps.

0
source

Source: https://habr.com/ru/post/1344446/


All Articles