Configure ProGuard to Retain Line Numbers in Stack Traces
来源:互联网 发布:人体解剖软件中文版 编辑:程序博客网 时间:2024/06/12 01:02
在使用Proguard进行代码混淆的时候,为了便于以后发布版本 debug比较方便,希望在堆栈记录中 保留行号信息,可以在proguard 文件中增加以下两行:
-renamesourcefileattribute SourceFile -keepattributes SourceFile,LineNumberTable
The first line ensures that source file names are hidden (will be named "SourceFile" in stack traces), the second instructs ProGuard to include the line numbers.
下图是截屏的一段 Log信息
如紫色框标记所示
参考:https://coderwall.com/p/fazk4g
- Configure ProGuard to Retain Line Numbers in Stack Traces
- An Introduction to Java Stack Traces
- An introduction to java stack traces
- An Introduction to Java Stack Traces
- How To Show Line Numbers In vi / vim Text Editor
- Android and stack traces
- GCC damangling stack traces
- Pool thread stack traces
- C/C++ call stack traces
- C/C++ call stack traces
- Unable to open stack trace file '/data/anr/traces.txt/: Permission denied
- proguard.ParseException: Unknown option '-keepdirectories' in line 57 of file
- exchange two numbers in each line
- How To Use Proguard in Android APP
- Buffer Overflows in Regmon Traces
- Debugging with Android NDK stack traces
- 各种语言版本实现Stack traces
- How to configure default browser in registry
- linux内核奇遇记之md源代码解读之七阵列同步一
- 笔记本怎么设置WIfi热点
- Html之表格_宽度_内对齐_实例
- 使用glue自动生成sprite
- JavaFX 3D部分介绍(4) Materials
- Configure ProGuard to Retain Line Numbers in Stack Traces
- 关于计算机网络的基本知识整理
- 【PSU升级】Oracle_RAC10.2.0.1到10.2.0.5.9的详细升级过程(二)
- hibernate对映射关系进行排序
- 如何改进iOS客户端的升级提醒功能
- 关于string转char*的问题
- MyEclipse本地破解显示中文界面
- 插件地址
- Ubuntu Linux 查看、编辑、比较二进制文件