3
votes

Why I can't debug my application on SAMSUNG GALAXY S7 EDGE (ANDROID 6.0.1) in RAD STUDIO 10 Seattle upd 1?

When I debug, the application on the device starts, but the debugger in RAD STUDIO (Delphi) immediately shuts off - I can't check the variable, set break points, etc.

I tried to debug even over IP, but the result is the same.

On all other devices, debugging is OK.

Someone advise me how to solve this problem?

PS: I have enabled USB Debugging Mode

Thanks.

2
I had the same problem link almost 2 years ago with XE5. I haven't had it since then. Could it be that Delphi doesn't support Android 6? What version do your other devices have?nolaspeaker
Android 5.x.x On the Internet it says it would support ANDROID 6. The application runs normally (on Android 6), but the debugger immediately disconnects.KJAN
Debug and run are 2 different things. The EMBT site says nothing about Android 6. Does the same app debug on Android 5x or earlier?nolaspeaker
Current news: Interim solution from Embarcadero is to add the parameter-autolaunch (Run | Parameters | ). The debugger works, but it probably will not be the final solution.KJAN

2 Answers

0
votes

You can solve this by going to Run -> Parameters in RAD Studio, and add -autolaunch to the list of parameters.

Apparently Embarcadero also a HotFix available, but I haven't tried it yet.
The HotFix is here, but is only available to members; registration is required.

-1
votes

I know I'm a bit late to answer, but maybe it will help other people in future. Me too I've got a Samsung S7 Edge, and couldn't debug with it. After some checking I realized that the reason is the Knox/My Knox. See here: https://seap.samsung.com/forum-topic/can-i-use-usb-debugging-mode-device-running-knox What I've done is just go to playstore, found there My Knox and clicked Uninstall, then switched on USB debugging that was previously grayed out. There are some other manuals on how to disable Knox. Some of them require rooting, but after rooting, I believe Samsung warranty will not work, if something happens to your phone.