android的调试

来源:互联网 发布:linux oracle启动服务 编辑:程序博客网 时间:2024/06/08 07:27

记录栈跟踪日志:

在被调用的方法前加入:

Log.d(TAG,"Updating question text for question #"+mCurrentIndex,newException());

进行LogCat调试,查找问题。


Debug工具调试:

设置断点:

需要调试的代码前面设置断点,进行Debug调试模式。


异常断点:

run-view breankpoints 选择java exception breakpoints 进行Bug调试,可马上定位错误。

android lint:

analyze-Inspect Code进行代码审查


0 0
原创粉丝点击