chromium log打印

1. 打印调用栈/C++打印log
  
  #include "base/logging.h" 
  #include "base/debug/stack_trace.h" 
  
  LOG(INFO) << "";
  base::debug::StackTrace st;
  st.Print();
 LOG(ERROR) << " Font::element_animations_=" <   这样就能直接从log中看到当前调用栈了。


  LOG(INFO) << "";
  
   std::string& GURL::spec()
   
      LOG(INFO) << "NavigationControllerImpl::LoadURLWithParams " << params.url.possibly_invalid_spec();
  
      const GURL& virtual_url = entry.GetVirtualURL();
    if (!virtual_url.is_valid() && !virtual_url.is_empty()) {
      LOG(WARNING) << "Refusing to load for invalid virtual URL: "
                   << virtual_url.possibly_invalid_spec();
  
  
  
2. Java Log:
 import org.chromium.base.Log;
  private static final boolean TRACE = true;
   if (TRACE) Log.i(TAG, "%s loadUrl(extra headers)=%s", this, url);

你可能感兴趣的:(webview)