Android Question Breakpoints do not stop on empty lines ?

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 ?
 

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.
 

MitchBu

Active Member
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.
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 :)
 
Top