Finally found how to solve problem with local variables not being visible when debugging Java code inside Android system_server
When building AOSP, disable debugger-breaking optimizations by removing "services_java_defaults" from "java_library" section inside services/Android.bp