After Updating the android version 1.5 to 2.0 Preview4. Android studio Debugger unable to find the local variable defined in method definition. For reference, find the below screenshot.
Android Studio indicates the line of code that your app executes just before triggering a watchpoint View and change resource value display format. In debug mode, you can view resource values and select a different display format for variables in your Java code. With the Variables tab displayed and a frame selected, do the following:
If you add C and C++ code to your project , Android Studio also runs the LLDB debugger in the Debug window to debug your native code. If the Debug window is not open, select View > Tool Windows > Debug (or click Debug in the tool window bar), and then click the Debugger tab, as shown in figure 1.
In debug mode, you can view resource values and select a different display format for variables in your Java code. With the Variables tab displayed and a frame selected, do the following: In the Variables list, right-click anywhere on a resource line to display the drop-down list.
Debug your app 1 Enable debugging. If you're using the emulator, this is enabled by default. ... 2 Start debugging. Set some breakpoints in the app code. ... 3 Change the debugger type. ... 4 Use the system log. ... 5 Work with breakpoints. ... 6 Inspect variables. ... 7 View and change resource value display format. ...
In your gradle, do you enable test coverage ?
buildTypes {
debug {
testCoverageEnabled = true
}
}
Set testCoverageEnabled = false
, it fixed the issue.
https://code.google.com/p/android/issues/detail?id=78045
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With