Why can't I debug a Delphi XE7 Android app on my device?

筅森魡賤 提交于 2019-12-24 11:53:38

问题


I am able to debug on an Android Emulator, but when I want to debug on ASUS Memorypad 7 it doesn't work.

After I hit cancel it gives the following message:

Unable to start gdbserver on port '64311'. Port is already in use.

I have changed the port several times in the Run parameters, but it still gives the same message.


回答1:


Try restarting everything first. Then follow Embarcadero`s guide:

Unable to start gdbserver on port : Port is already in use

where is the port number being used by the Android gdbserver:

Power off or restart your Android device and then run your application again.

Choose another debug port:

Select Run > Parameters and enter the following in the Parameters field:

        -debugport=<n> where <n> is an alternate debug port, such as 54321. 

Then click OK.

Link Reference




回答2:


In the end I needed to get another device. I'm using Huawei's MediaPad M1 8.0 now and that works after I installed HiSuite.



来源:https://stackoverflow.com/questions/28429137/why-cant-i-debug-a-delphi-xe7-android-app-on-my-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!