Recent

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

rsu333

  • Full Member
  • ***
  • Posts: 110
Re: [LAMW] Debug Apk From IDE
« Reply #15 on: April 18, 2021, 08:25:29 am »
This is also good , example video ,But I suggest to upgrade it by LAMW manager.

jluixjurado

  • New Member
  • *
  • Posts: 21
Re: [LAMW] Debug Apk From IDE
« Reply #16 on: September 27, 2022, 08:37:11 pm »
Hi there!

I'm trying to debug from IDE but with not luck so far.

First of all, I'm using the ndk bundled with last version of LAMW (updated)

In that version, the gdb is in C:\lamw_manager\LAMW\sdk\ndk-bundle\prebuilt\windows-x86_64\bin\gdb.exe

I've followed the steps in LAMW_DebugApkFromIDE.txt to the 14th with success.

The Messages Window says:

     Listening on port 2021
     Remote debugging from host 127.0.0.1, port 57975 <--???
     Attached; pid = 20562

BUT, the app is frozen in my (real) device and, when setting breakpoints in any code line, the ? symbols appears (like not really connected)

I'm using Windows 10 btw.

Any idea would be greatly appreciated!

jluixjurado

  • New Member
  • *
  • Posts: 21
Re: [LAMW] Debug Apk From IDE
« Reply #17 on: September 28, 2022, 08:48:44 am »
Ok, I've downloaded the android-ndk-r10e package and it's working! Superb!

iwizard

  • New member
  • *
  • Posts: 8
Re: [LAMW] Debug Apk From IDE
« Reply #18 on: February 12, 2024, 02:52:24 pm »
Does anyone use the latest version of lamw and newer NDK versions such as 19c and above? Did the experiment debug function succeed in the end?

I use the latest lamw version, tried 19c (32bit_win), 20b (32bit_win), 21e (32bit_win/64win_win) all failed, basically in the last step of attaching the process, you can attach the process pop-up window and you can select the current program to be debugged, but then it will be stuck, unable F9
« Last Edit: February 12, 2024, 02:58:29 pm by iwizard »

iwizard

  • New member
  • *
  • Posts: 8
Re: [LAMW] Debug Apk From IDE
« Reply #19 on: February 14, 2024, 09:46:31 am »
After a few days of trying, I think that the gdb program provided by ndk is incompatible with the relevant method implementation in TGDBMIDebugger in lazarus, search for alternatives on the Internet, and find the "GDB 7.4.1 for Android with NEON support" provided by the https://gnutoolchains.com/android/ website, use gdb, GDBserver replaces the program with the same name in ndk R19C (this GDB7.4.1 only supports ARM platform) and can be smoothly debugged on Android real machines! ;)
« Last Edit: February 14, 2024, 09:50:11 am by iwizard »

 

TinyPortal © 2005-2018