Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Delphi 10.2.1 - Unable to debug on Android



Permlink Replies: 3 - Last Post: Sep 15, 2017 4:24 PM Last Post By: Dave Nottage
Jako Grobler

Posts: 45
Registered: 6/26/15
Delphi 10.2.1 - Unable to debug on Android
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 14, 2017 1:23 PM
Delphi 10.2.1
HTC Nexus 9 with Android 7.1.1

I am unable to debug anything on the Android device. Connected via USB cable. Using the "Debug configuration->Development". Example of the message that pops up in the IDE:

gdbserver: unable to open /proc file '/proc/6238/status'
gdbserver: unable to open /proc file '/proc/6238/status'
Cannot attach to lwp 6238: Permission denied (13)
Exiting

Any tips, hints or other suggestions will be greatly appreciated!
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: Delphi 10.2.1 - Unable to debug on Android
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 14, 2017 2:28 PM   in response to: Jako Grobler in response to: Jako Grobler
Jako Grobler wrote:

gdbserver: unable to open /proc file '/proc/6238/status'
gdbserver: unable to open /proc file '/proc/6238/status'
Cannot attach to lwp 6238: Permission denied (13)
Exiting

Any tips, hints or other suggestions will be greatly appreciated!

At a guess, I'd say you may have accidentally tapped "Disallow" (or whatever it's called) when prompted on the phone
for USB debugging (and checked the "remember" checkbox). You might be able to reset the block by using the "Revoke USB
debugging authorisations" item in the developer options.

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com
Jako Grobler

Posts: 45
Registered: 6/26/15
Re: Delphi 10.2.1 - Unable to debug on Android
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 15, 2017 9:02 AM   in response to: Dave Nottage in response to: Dave Nottage
Dave Nottage wrote:
Jako Grobler wrote:

gdbserver: unable to open /proc file '/proc/6238/status'
gdbserver: unable to open /proc file '/proc/6238/status'
Cannot attach to lwp 6238: Permission denied (13)
Exiting

Any tips, hints or other suggestions will be greatly appreciated!

At a guess, I'd say you may have accidentally tapped "Disallow" (or whatever it's called) when prompted on the phone
for USB debugging (and checked the "remember" checkbox). You might be able to reset the block by using the "Revoke USB
debugging authorisations" item in the developer options.

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com

Found the issue! We have two Android accounts that we test with on this device. When you unlock the screen look at the top right and there is a round human-like icon. It allows switching between accounts (useful because one account is signed up for our app beta, one is not). You can then switch app versions by uninstalling/re-installing.

For debug permissions the main account of the device must be logged in.
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: Delphi 10.2.1 - Unable to debug on Android
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 15, 2017 4:24 PM   in response to: Jako Grobler in response to: Jako Grobler
Jako Grobler wrote:

Found the issue! We have two Android accounts that we test with on this device. When you unlock the screen look at
the top right and there is a round human-like icon. It allows switching between accounts (useful because one account
is signed up for our app beta, one is not). You can then switch app versions by uninstalling/re-installing.

For debug permissions the main account of the device must be logged in.

Good to know; thanks for posting about what the solution was for you!

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02