How to setup debugger to catch task exceptions?

We are seeing some tasks randomly go to a “Stopped” state in the middle of execution. How can the debugger be setup to catch these exceptions (to show where the crash, if any, occurred)?

Any other tips to debug task crashes would be useful as well. Thanks.