Handy bug tracking using
Error.Backtrace().Join("\n")

When debugging code catch errors and trace their source using the Error.Backtrace property.


Public Sub Form_Load()

' Your Code Here...

Catch
  Message.Error(Error.Text & "\nBacktrace:\n" & Error.Backtrace.Join("\n"))
End

Or...


Public Sub Form_Load()

' Your Code Here...

Catch
  Debug Error.Text & "\nBacktrace:\n" & Error.Backtrace.Join("\n")
End