Android Question Breakpoints do not stop on empty lines ?

Discussion in 'Android Questions' started by MitchBu, Aug 30, 2019.

  1. MitchBu

    MitchBu Active Member Licensed User

    I just tried to put breakpoints in my code on an empty line, and they did not work.

    Then I added a log() on the line where the breakpoint was, and it worked.

    Apparently, for a breakpoint to halt execution, it has to be set on a line where there is an instruction.

    Is this intended ?
     
  2. JohnC

    JohnC Well-Known Member Licensed User

    Yes
     
    MitchBu likes this.
  3. alwaysbusy

    alwaysbusy Expert Licensed User

    My guess is when the B4X code is transpiled to java, empty lines (and commented lines too?) do not have a link between the two languages.
     
  4. MitchBu

    MitchBu Active Member Licensed User

    Hi Alain,

    Indeed a breakpoint on a commented line does not halt execution as well.

    As long as I know it is normal, that's fine.

    Thank you :)
     
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