Please refer to the full documentation in debugging example module.
Tutorial: tracking the throw of an exception