To enable this option, you need to first reproduce the exception in your code while debugging. Once the exception is thrown, the Exception Settings window should become active, and you should be able to check or uncheck the "Noncomvisiblebase class" exception in the list of exceptions.
Here are the steps to reproduce the exception and enable the "Noncomvisiblebase class" exception in the Exception Settings window:
- Start debugging your code.
- Perform the actions in your UI automation code that lead to the "Noncomvisiblebase class" exception.
- When the exception is thrown, the Visual Studio debugger should stop at the line of code that caused the exception.
- In the Visual Studio menu, go to Debug > Windows > Exception Settings.
- In the Exception Settings window, scroll down to find the "Noncomvisiblebase class" exception.
- Check the box next to the "Noncomvisiblebase class" exception to enable it.
- Click the "Continue" button to resume debugging your code.
After enabling the "Noncomvisiblebase class" exception, the debugger should break whenever this exception is thrown, allowing you to inspect the state of your code and diagnose the issue.