2017-02-10 93 views

回答

0

还有就是退出接口打印回溯android的铬,你可以试试下面的方法:

//Add Header File 
#include <base/debug/stack_trace.h> 

//use it in the place where need to print the backtrace 
base::debug::StackTrace st; 
st.Print(); 

您可以参考以下链接:

https://www.chromium.org/blink/getting-started-with-blink-debugging

+0

我试过了,它不起作用。 – stacker

+1

您可能需要设置以下编译标志:exclude_unwind_tables = true – bitchainer

+0

也可能标准输出未被重定向到adb logcat。试试这个: #include“base/logging.h” LOG(WARNING)<< st.ToString(); 请记住,您必须符号化堆栈跟踪。 就我个人而言,我发现附加gdb和打印stacktraces的方式更有效。 –