android-debugging

build gdb and gdbserver for android

自闭症网瘾萝莉.ら 提交于 2020-06-16 07:45:13
问题 I'm working on 64 bit linux, need to build gdbserver for my aarch64 Android phone.There is prebuilt gdbserver in NDK, but it uses the python in NDK package, not using my system python, I can't install other python plugins. How to find which --target and --host parameter is required for ./configure ? I tried the --help , and google like "build gdbserver aarch64" or "gdbserver configure android", but did't find any answer for aarch64 Android. For gdb I can use ./configure --enable-targets=all ,

Android Studio Variables not appearing in OnClickListener body

て烟熏妆下的殇ゞ 提交于 2019-12-24 21:17:17
问题 I'm working in android studio using the debugger. var loginButton = findViewById<Button>(R.id.loginButtonFinal) var emailInput = findViewById<EditText>(R.id.emailInput) var e = 2 loginButton.setOnClickListener { println("Log In Button pressed, will log in now") // insert code for login in here // signIn(email = emailInput.) } If I set a breakpoint in the debugger at the line containing var e = 2 I will see loginButton and emailInput output to the variable section of the debugger. But if I

Android app crashes when launched in debug mode

爷,独闯天下 提交于 2019-11-26 15:43:48
When I run in debug mode the app crashes, but when I just run it normally it works. I think the problem happens when the debugger is attached. Log: A/art: art/runtime/jdwp/jdwp_event.cc:661] Check failed: Thread::Current() != GetDebugThread() (Thread::Current()=0x7f44a18400, GetDebugThread()=0x7f44a18400) Expected event thread A/art: art/runtime/runtime.cc:422] Runtime aborting... A/art: art/runtime/runtime.cc:422] Aborting thread: A/art: art/runtime/runtime.cc:422] "JDWP" prio=5 tid=4 WaitingForDebuggerSend A/art: art/runtime/runtime.cc:422] | group="" sCount=0 dsCount=0 obj=0x12c60280 self

Android app crashes when launched in debug mode

女生的网名这么多〃 提交于 2019-11-26 04:36:17
问题 When I run in debug mode the app crashes, but when I just run it normally it works. I think the problem happens when the debugger is attached. Log: A/art: art/runtime/jdwp/jdwp_event.cc:661] Check failed: Thread::Current() != GetDebugThread() (Thread::Current()=0x7f44a18400, GetDebugThread()=0x7f44a18400) Expected event thread A/art: art/runtime/runtime.cc:422] Runtime aborting... A/art: art/runtime/runtime.cc:422] Aborting thread: A/art: art/runtime/runtime.cc:422] \"JDWP\" prio=5 tid=4