android webkit 打开debug调试信息

在android的framework层有有一个文件专门针对webkit各个分类进行调试的开关

frameworks/base/core/java/android/webkit/DebugFlags.java

这个里面的内容就是各个类型debug的开关

class DebugFlags {

    public static final boolean BROWSER_FRAME = false;
    public static final boolean CACHE_MANAGER = false;
    public static final boolean CALLBACK_PROXY = false;
    public static final boolean COOKIE_MANAGER = false;
    public static final boolean COOKIE_SYNC_MANAGER = false;
    public static final boolean FRAME_LOADER = false;
    public static final boolean J_WEB_CORE_JAVA_BRIDGE = false;// HIGHLY VERBOSE
    public static final boolean LOAD_LISTENER = false;
    public static final boolean NETWORK = false;
    public static final boolean SSL_ERROR_HANDLER = false;
    public static final boolean STREAM_LOADER = false;
    public static final boolean URL_UTIL = false;
    public static final boolean WEB_BACK_FORWARD_LIST = false;
    public static final boolean WEB_SETTINGS = false;
    public static final boolean WEB_SYNC_MANAGER = false;
    public static final boolean WEB_TEXT_VIEW = false;
    public static final boolean WEB_VIEW = false;
    public static final boolean WEB_VIEW_CORE = false;
    /*
     * Set to true to allow the WebTextView to draw on top of the web page in a
     * different color with no background so you can see how the two line up.
     */
    public static final boolean DRAW_WEBTEXTVIEW = false;
}

在默认的情况下都是关闭的,可以打开进行对应的测试

这个开关只是针对framework层的Java端调试



你可能感兴趣的:(android,Web,manager,webkit,callback,browser)