简体   繁体   English

无法调试android库代码

[英]Unable to debug android library code

I have an android app which uses another android library module as a dependency. 我有一个Android应用程序,它使用另一个Android库模块作为依赖。 The thing is that I am unable to see the value of variables in that library during debug. 问题是我在调试期间无法看到该库中变量的值。 As a result, I am also unable to evaluate expression also. 结果,我也无法评估表达式。 I get an error saying 'Local Variable Not Found'. 我收到一条错误消息“未找到本地变量”。 Any clues how to get around this issue? 有什么线索如何解决这个问题?

The reason because of which this issue was coming was ProGuard. 这个问题即将到来的原因是ProGuard。 Since ProGuard does the obfuscation, variables in library code could not be debugged. 由于ProGuard进行了混淆,因此无法调试库代码中的变量。 Once I turned ProGuard off in debug build, everything was back on track 一旦我在调试版本中关闭ProGuard,一切都恢复了正常

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM