https://www.b4x.com/android/forum/threads/b4a-automatic-insertion-of-log-statements.47464/
It is not free but it costs a few dollars.
It is not free but it costs a few dollars.
Attachments
Last edited:
I meant just the sub routine.
If it contains a parameter of type Map, I have corrected the error right now.
Thanks again
[P.S. We have something similar @RauchG: the little French nose ]
Now I have some games for cosmetic surgeons
I still get this error message.
Do I have something special in mind?
#If Debug
Log("Btn.Tag: " & Btn.Tag)
#End If
tmpString = tmpTag.Replace("OnLongClickSub","#")
#If Debug
Log("tmpString1: " & tmpString)
#End If
tmpString = tmpString.SubString(tmpString.IndexOf("#")+2)
tmpString = tmpString.SubString2(0,tmpString.IndexOf(","))
#If Debug
Log("tmpString2: " & tmpString)
Log("End of tmpString: " & Asc(tmpString.CharAt(tmpString.Length-1))) 'Here there is a chr10 (LF) at end
#End If
tmpString = tmpString.Replace("_LongClick","")
#If Debug
Log("tmpString2: " & tmpString)
Log("End of tmpString: " & Asc(tmpString.CharAt(tmpString.Length-1))) 'Here the same chr10 at end also, any test you do with the variable tmpString after don't work.
' See the log attached
' I don't know if it's due to SubString2 or Replace but with Android 4.x i haven't this problem before.
#End If
tmpString = tmpString.Trim ' <- ' I have add this and that's work now
#If Debug
Log("End of tmpString: " & Asc(tmpString.CharAt(tmpString.Length-1))) 'Here nothing more than the SubString who is needed.
Log("Sender: " & tmpString)
#End If
But I can not see what is wrong if you do not publish even the routine (yours) where it occurs.
as you can see in the screenshot, the error message is already in your run "AddLogs.exe". When I look at my code, the module for "modMyUtils" was not created.
The idea for the "logs" is very good and I pay discounts for 10 € if it runs correctly.
I have sent you my project as an e-mail. Did not you get it? Drag the folder on your program and you see the error the same.
Sorry. 15€
I still get this error message.
Do I have something special in mind?
Sub GenerateRecords(howmany)
Well, you are expecting votes and comments.
The only voter till now that's me.
My comment, I won't use it.
When I debug a program I put Logs in the area where I have a problem and solve it.
Once the problem is solved I remove the Logs, I have no reason to leave them in there?
Now I correct it and the public the updated version.
as you can see in the screenshot, the error message is already in your run "AddLogs.exe". When I look at my code, the module for "modMyUtils" was not created.
The idea for the "logs" is very good and I pay discounts for 10 € if it runs correctly.
I have sent you my project as an e-mail. Did not you get it? Drag the folder on your program and you see the error the same.
[Removed because of lack of positive comments]
I would have been interested in what you have changed in version 1.2.4.