I have defined a Method on a webform which further calls a long chain of other Inner methods and functions.

There are chances that error could occur in any of those methods in the chain.

But the error-trapping and error-logging code is written only on the webform. If an error occurs how can we know exactly in which of the inner function did the error occured ?