Debugging system server method parameters and local variables

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Debugging system server method parameters and local variables

Dean Wheatley-2
I have Android Studio Java debugging working fine with breakpoints enabled for
frameworks/base/services/core/java/com/android/server/tv/ when connected to a yukawa board running AOSP master.

public void onBootPhase(int phase) {
if (phase == SystemService.PHASE_SYSTEM_SERVICES_READY) { // Added breakpoint here.

If I break on the method onBootPhase first line, the class member mHdmiHotplugEventListener is available in the debugger variables, but no other variables (such as method argument 'phase') are available:

"Cannot find local variable 'phase'".

I am using a userdebug build for the yukawa.

Does the system server need to be compiled differently to support debugging of these method local variables? And/or, should certain system properties be set appropriately? Is an eng build required / sufficient to enable this?


You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit