1

I'm trying save compiling time only for debug first app lines code.

There is solution to exit by backPress() and the process still running (and then i can attach debugger to process), but my debug scenario need to check app from start so i need to kill process before debug, which prevent me to attach debugger unless otherwise i'm compiling the app in debug mode.

Does any one know how to prevent compile in debug only for that?

SerhatCan
  • 590
  • 1
  • 7
  • 26
itzhar
  • 12,743
  • 6
  • 56
  • 63

1 Answers1

0

go to settings -> Developer options -> Select app to be debugged -> choose your app

turn on 'Wait for debugger'

then when you launch the app you see this screen:

enter image description here

Now app wait for you to attach debugger and auto start when it's attached

It is actually start the app-process without start launcher activity

itzhar
  • 12,743
  • 6
  • 56
  • 63