Android - Appium calls deleteSession while debugging

I’m using AppiumDesktop 1.6.5 with Selenium and Java for Android app. While I’m debugging my code, appium calls deleteSession immediately , ie., less than 15 seconds. So my driver session gets closed.

So I have to restart my debugging from the beginning again.

How to increase this session timeout value?

Increase the Implicit wait time. That should do the trick