Android Question Possible Bug on Debug Mode B4A 11.50 ?

MarcoRome

Expert
Licensed User
Longtime User
Hi All.
I had already noticed in some project that some variables in starter return them as null if you try to debug while having the assigned value.

Example:
B4X:
    Starter.a1 = "xxxx"
    Starter.a2 = "yyyy"
    Sleep(2000)
    StartActivity(act_new2)

In activity act_new2 i have this situation:

1652508046307.png


if i run the code in "Use Legacy Debugger" work.

1652508132582.png



In attachment example.
Thank you
Marco
 

Attachments

  • TestDebug.zip
    10.1 KB · Views: 85

MarcoRome

Expert
Licensed User
Longtime User
It is not a bug. This is how services and other non-class modules are represented. The variable itself is actually null.

The real bug here is to use 3 activities and the starter service. This is a complete waste of time. Switch to B4XPages.
Hi Erel.
Yes, you are really right about the B4XPages. But it's an "old" project and we don't want to convert it anyway.
Also what do you mean by "This is how services and other non-class modules are represented."
Thank you for your answer.
 
Upvote 0
Top