I assume that skipping means that you want your program to continue to work after the exception. This, of course, is possible by catching an exception when using the try-catch block.
If the exception is not a traffic jam (for example, some key variable is not initialized after the exception, and you cannot continue working), it is recommended that you at least register it before continuing. Of course putting
catch (exception e) {}
everywhere in your source will not lead to a stable application;)
If your problem is more related to the debugger (you do not want the debugger to stop on every exception thrown), then in VS there is a place where you can change this:
From the Debug menu, select Exceptions . You will see all the possible exceptions, and you can configure their behavior during the throw or not be handled by the user.
source share