How to enable the exception setting option in debug menu of vs studio?

Anonymous
2023-02-21T20:42:00.0033333+00:00

I'm working on project related to UI automation. While debugging got an error "Noncomvisiblebase class" exception. From discussions in forums i came to know we need to uncheck the noncom in exception settings tab in debug menu.. I'm able to add/see the exception settings from customize but it is disabled in debug menu, not able click on it. Please help me with this issue. Thanks in advance.

Developer technologies Visual Studio Debugging
Developer technologies Visual Studio Other
Developer technologies C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alan Farias 755 Reputation points
    2023-02-24T15:09:58.8033333+00:00

    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:

    1. Start debugging your code.
    2. Perform the actions in your UI automation code that lead to the "Noncomvisiblebase class" exception.
    3. When the exception is thrown, the Visual Studio debugger should stop at the line of code that caused the exception.
    4. In the Visual Studio menu, go to Debug > Windows > Exception Settings.
    5. In the Exception Settings window, scroll down to find the "Noncomvisiblebase class" exception.
    6. Check the box next to the "Noncomvisiblebase class" exception to enable it.
    7. 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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.