Android Question Cannot put a breakpoint in sub Activity_Pause

Discussion in 'Android Questions' started by PhilipBrown, Apr 24, 2015.

  1. PhilipBrown

    PhilipBrown Active Member Licensed User

    You cannot put a breakpoint in sub Activity_Pause. I don't know why but that's the way it is.
    And if you put breakpoints in any subs called within Activity_Pause, they don't work.

    So my question is, how do you debug these subs?

    The only thing I can think of is to debug them separately, using buttons for example to fire each one, but that's not ideal. Is there a better solution?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Android will kill the process if Activity_Pause is not completed in several seconds (the same is true for Service_Create and Service_Start).

    The best way to debug these subs is with Log messages.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice