Disabling Debugging of a Class
Right-click the class in the Explorer and choose Properties from the contextual menu.
In the Properties window, click the Execution tab.
Click the value for the Debugger property and choose (do not debug) from the list of options.
See also
Ending a Debugging Session
Legal Notices