Thanks for this implementation.
I wanted to ask if it is possible to debug also by launching the apk on a physical device. I tried, with emulator it works fine, but on a physical device it gives me this error:
Messaggi, suggerimenti: 2
Verbose: Selected chip architecture: armeabi-v7a
Verbose: Taking libraries from folder: C:\lamw\test\canccanc\AppLAMWProject2\libs\armeabi-v7a
Verbose: Found library: libcontrols.so
Note: Duplicate unit "controls" in "controls", orphaned ppu "C:\lamw\test\canccanc\AppLAMWProject2\obj\controls\controls.o"
Note: Duplicate unit "controls" in "LCLBase 2.0.0.4", ppu="C:\lamw\laz4android2.0.0\lcl\units\arm-android\controls.ppu", source="C:\lamw\laz4android2.0.0\lcl\controls.pp"
Compila il progetto, OS: android, CPU: arm, Destinazione: C:\lamw\test\canccanc\AppLAMWProject2\libs\armeabi-v7a\libcontrols.so: Successo
Building APK (Gradle)... : Successo
Starting APK (Gradle)... : Successo
Get CPU Abilist: Successo
Get Build Version Sdk: Successo
Scan org.lamw.applamwproject2 PID...: Successo
Pull /system/bin/app_process32 to C:/lamw/test/canccanc/AppLAMWProject2/gdb: Successo
Pull /system/bin/linker to C:/lamw/test/canccanc/AppLAMWProject2/gdb: Successo
Pull /system/lib/libc.so to C:/lamw/test/canccanc/AppLAMWProject2/gdb: Successo
Adb forward tcp:2021 tcp:2021: Successo
2021
Start(run-as org.lamw.applamwproject2 lib/gdbserver --multi :2021): Codice di uscita 234, Errori: 1
run-as: Package 'org.lamw.applamwproject2' has corrupt installation
Panic: lo strumento ha terminato con codice di uscita 234. Usare il menu contestuale per maggiori informazioni.
Exception, Errori: 1
Fatal: [Exception] Failed: Cannot start(run-as org.lamw.applamwproject2 lib/gdbserver --multi :2021)
Is it possible to debug on a physical device?