When Google introduced Android 8 this summer, they increased platform security but happened to block socket access to the debugger, basically preventing debugging applications on a device. You’d see the error message “Can’t open socket: Permission denied.” as reported also at https://quality.embarcadero.com/browse/RSP-18992. The issue was not a change in our debugger support, but a problem at the operating system level. You can read some of the discussion here: https://github.com/android-ndk/ndk/issues/447
Now the good news is Google has fixed the issue (as indicated in the thread above). We tested it on previews and it seemed fine. Now Google has shipped Android Oreo 8.1, I for it for my Nexus 5X device this morning, installed it, and I can now debug a Delphi application as usual. I captured an image of the program stopped at a breakpoint below.
This has nothing to do with 10.2.2 because the change was only on the Android side, not the RAD Studio side. We fixed the display of the device name as target on our end, but that wasn’t a big deal in the first place.
Do you want to build an Android app? Try the Android App Builder Software, which will assist you in developing apps in the Delphi or C++ environments.
Design. Code. Compile. Deploy.
Start Free Trial Upgrade Today
Free Delphi Community Edition Free C++Builder Community Edition
Delphi’s Debug sucks! Suddenly it stops working.
I noticed that this problem tends to occur when I have two instances of the Delphi ide open. And the option Auto Save -> Save project Desktop when closing. Somehow Delphi caused some internal confusion that the debugger stops working on windows and especially on android. A very expensive tool comes in version and version and you don’t fix it. We are already 10.4.1 and the problem persists. Miss the turbo debug borland
sorry about my English ….
Debug do Delphi esta uma porcaria ! De repente ele para de funcionar .
Observei que este problema tende a ocorrer quando estou com duas instancias do ide do Delphi aberta . E a opção Auto Save–>Save project Desktop when closing . De alguma maneira o Delphi fas alguma confusão interna que o depurador para de trabalhar no windows e principalmente no android. Uma ferramenta caríssima entra versão sai versão e vocês não arrumam isto . Já estamos 10.4.1 e o problema persiste . Saudade do turbo debug borland
I’m sorry to hear about that. Can you point me at the QP report for it please? (With a bug report, we can get our engineers to have a look.)