How to get line numbers in your code for specific events, viz., exception?

One of my clients came up with a requirement to track down the line of the code immediately when the exception is thrown, note that this is ‘without the use of the debuggers’. My research led me to lot of questions online about this and hence I am trying to write a succinct blog about what…