Wish old, so useful, legacy debug mode

vangogh

Active Member
Licensed User
Longtime User
the old "debug mode" (legacy debuggwer) was wonderful, extremely useful

We could know EXACTLY the line code and the line itself where an error arised
when a customer had an error, a screenshot whas more than enought to understand everything

now we need to do something like this

b4a errors manager:
sub EverySub()

    ' I do this in every single sub, in many places inside the sub

    NomeSubXTrackErrors = "I am here 1, in this sub_name"
    'some stuff here... (the sub code)

    NomeSubXTrackErrors = "I am here 2, in this sub_name"

    'something OK...

    NomeSubXTrackErrors = "I am here 3, in this sub_name"

    'the error:
    dim i as integer
    i="abcd"

    ' in old legacy debugger I got, big and screenshotable, this message:
    ' error in line number 17: i="abcd" not integer
    '(ok, or something simlar)

    NomeSubXTrackErrors = "I am here 4, in this sub_name"

end sub

Sub Application_Error (Error As Exception, StackTrace As String) As Boolean

    ' this traps the error I get in any sub
    CallSub3("Main", "ShowError_Application_Error", Error, StackTrace)
    Return False

End Sub

'in main

Public Sub ShowError_Application_Error (Error As Exception, StackTrace As String) As Boolean

    MsgboxAsync ("Error about here" & _
                 " in " & NomeSubXTrackErrors & vbCrLf & vbCrLf & _
                 Error.Message & vbCrLf & vbCrLf & vbCrLf & _
                 "Stacktrace" & vbCrLf & _
                 StackTrace, "Errore")

    'this gives a message, very hard to understand, related to java...

    Return False

End Sub



now the legacy debugger doesn't work anymore, my app closes quite immediately,
and, yes, the use of legacy debugger is now deprecated

it was SOOOOOOOOOOOOOOOOOO useful, and EASY, and QUICK: we read a message saying: THIS is the line and THIS is the error

now I am becoming crazy to understand why a my customer (far form me) has an error, the error is very hard to be understood as I get the error related to java...


could we have the legacy debug mode works again on "not connected to ide" apps?

thank you
 
Top