Bug? Bug in Debug

Star-Dust

Expert
Licensed User
Longtime User
I used Erel's B4XEval Class and made a small change to fit my FlexGrid library.
But when I execute the code in DEBUG it marks me a nonexistent error: Variable not declared, in reality it is not so.

Now I've created an example code to reproduce the problem but it marks another nonexistent error: 'Current declaration does not match previous one.'

I attach the code and the error message at the bottom
upload_2018-11-11_13-15-14.png


This error does not occur in RELEASE (and DEBUG LEGACY) mode. BUT compile perfectly
 
Last edited:

stevel05

Expert
Licensed User
Longtime User
It is because there are loops that use Row and Col as indexes that aren't declared first.

When they are then declared as Int, it is considered to be an error.

Add the line :
B4X:
Dim Row,Col As Int
as line 85 in EVal module
 

Star-Dust

Expert
Licensed User
Longtime User
This is the incriminated Sub. In my opinion it is a BUGS, because compiled works correctly as in DEBUG LEGACY.

It should always mark it error or never.

P.S.: The code is from Erel, so if you wrote it the code will be right and the debugging is wrong
 
Last edited:

stevel05

Expert
Licensed User
Longtime User
I believe that the Legacy Debugger is deprecated.

The code is from Erel, so if you wrote it the code will be right

Just an oversight I'm sure.
 

Star-Dust

Expert
Licensed User
Longtime User
Legacy has been deprecated.

But Release is not deprecated :p and compiles perfectly, the code is correct.
 

Star-Dust

Expert
Licensed User
Longtime User
Thnks
 
Top