How to get Visual Studio debugger to pause when a UnityEngine.UnityException is thrown?

I’ve survived without this long enough, but now feel I really need it. In Visual Studio, under Exception Settings, I can indicate which exceptions will pause the debugger at the point they are thrown. However, there are no entries for UnityEngine.UnityException in there. I have the Unity Tools for Visual Studio installed ( probably not the latest ), but I was never able to get this functionality. Does anyone know how to make it so the debugger breaks on the offending line of code like regular System exceptions?

Thx in advance :smile:

6197377--679864--upload_2020-8-12_16-39-6.png

I figured it out. I can simply “Add an exception to the selected category” and type in “UnityEngine.UnityException”. I think I was confused because it didn’t seem right to add it to an existing category and there is not option to create a new category. Anyhoo, there it is :smile:

6199676--680288--upload_2020-8-13_9-40-54.png

2 Likes