Recent

Author Topic: [LAMW] Debug Apk From IDE  (Read 957 times)

jmpessoa

  • Hero Member
  • *****
  • Posts: 1785
[LAMW] Debug Apk From IDE
« on: January 21, 2021, 04:31:11 pm »
New!

"Debug Apk From IDE"  by  @leopreo

ref.

https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/LAMW_DebugApkFromIDE.txt

Thanks to @leopreo!

PS. dependency/required package "LazDebuggerFpGdbmi"
« Last Edit: January 21, 2021, 04:39:42 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

rsu333

  • New Member
  • *
  • Posts: 18
Re: [LAMW] Debug Apk From IDE
« Reply #1 on: January 22, 2021, 04:29:44 pm »
Thanks for your great job.

rsu333

  • New Member
  • *
  • Posts: 18
Re: [LAMW] Debug Apk From IDE
« Reply #2 on: January 24, 2021, 06:40:59 am »
Kindly explain the importance of above method over previous  method of  debugging. I have try it on laz4and.
in another folder , girdle 6.>,  fetal at  build step.
You have also explain key store in debugging which I can't do easily .
Is there any google friendly debugging method ? Or can do any changes in debugging option ? Please   

Segator

  • Full Member
  • ***
  • Posts: 159
    • https://github.com/Nenirey
Re: [LAMW] Debug Apk From IDE
« Reply #3 on: January 24, 2021, 02:34:09 pm »
I think that you not need the keystore in debugging option, when the app work fine then you change from debugging to release and then use keystore.
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

Leopreo

  • Newbie
  • Posts: 2
[LAMW] Debug Apk From IDE
« Reply #4 on: January 26, 2021, 02:47:49 pm »
26.01.2021: Add chipset ARMv7a+Soft and test it on AVD Android Emulator (Device Nexus 9 [5.1.1-API22]
Google APIs ARM (armeabi-v7a)), Setup in gdbmiserverdebuggerlamw.pas SIG33 & SIG35 to "nopass nostop noprint" (blocks real time events), add for localhost command "adb forward tcp:port tcp:port"

https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/LAMW_DebugApkFromIDE.txt
« Last Edit: January 26, 2021, 03:12:04 pm by Leopreo »

Segator

  • Full Member
  • ***
  • Posts: 159
    • https://github.com/Nenirey
Re: [LAMW] Debug Apk From IDE
« Reply #5 on: February 11, 2021, 04:39:36 pm »
i can't find the ...android-ndk-r10e\toolchains\arm-linux-androideabi-4.9\prebuilt\windows\bin\arm-linux-androideabi-gdb.exe binary in that place exits other like:
Code: Pascal  [Select][+][-]
  1. arm-linux-androideabi-g++.exe
  2. arm-linux-androideabi-gcc.exe
  3. arm-linux-androideabi-gcc-4.9.exe
  4. arm-linux-androideabi-gcc-4.9.x.exe
  5. arm-linux-androideabi-gcc-ar.exe
  6. arm-linux-androideabi-gcc-nm.exe
  7. arm-linux-androideabi-gcc-ranlib.exe
  8. arm-linux-androideabi-gcov.exe
  9. arm-linux-androideabi-gcov-tool.exe
  10. arm-linux-androideabi-gprof.exe

but not gdb, what can i do?
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

juank1971

  • Full Member
  • ***
  • Posts: 110
Re: [LAMW] Debug Apk From IDE
« Reply #6 on: February 11, 2021, 05:01:48 pm »
yes i have in
C:\LAMW\android-ndk-r10e\toolchains\arm-linux-androideabi-4.9\prebuilt\windows\bin\arm-linux-androideabi-gdb.exe
donwload android-ndk-r10e again and uncompress
« Last Edit: February 11, 2021, 05:03:25 pm by juank1971 »

juank1971

  • Full Member
  • ***
  • Posts: 110
Re: [LAMW] Debug Apk From IDE
« Reply #7 on: February 11, 2021, 05:04:37 pm »
this is

Segator

  • Full Member
  • ***
  • Posts: 159
    • https://github.com/Nenirey
Re: [LAMW] Debug Apk From IDE
« Reply #8 on: February 12, 2021, 11:26:48 pm »
thanks @juank1971 i will try it.
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

Segator

  • Full Member
  • ***
  • Posts: 159
    • https://github.com/Nenirey
Re: [LAMW] Debug Apk From IDE
« Reply #9 on: February 17, 2021, 05:57:44 pm »
i try other ndk version the file is not present, i try with the 64bits versions 16b and 18b, is only present in the 32 bits version or the 10e like the tutorial?
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

Leopreo

  • Newbie
  • Posts: 2
Re: [LAMW] Debug Apk From IDE
« Reply #10 on: February 18, 2021, 04:46:57 pm »
32bit: android-ndk-r18b\prebuild\windows\bin\gdb.exe
64bit: android-ndk-r18b\prebuild\windows-x86_64\bin\gdb.exe
« Last Edit: February 18, 2021, 04:51:10 pm by Leopreo »

Segator

  • Full Member
  • ***
  • Posts: 159
    • https://github.com/Nenirey
Re: [LAMW] Debug Apk From IDE
« Reply #11 on: February 19, 2021, 02:12:11 am »
thanks @Leopreo i will try it.
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

 

TinyPortal © 2005-2018