Home > Net >  C # debugging, how to set up the program and interrupt automatically when an exception occurs?
C # debugging, how to set up the program and interrupt automatically when an exception occurs?

Time:03-13

As title, the program debugging, throw an exception in instant window "System. IndexOutOfRangeException picturebox drawing errors, displayed blank and a red rectangular box with a big steel fork! Programs don't quit, don't show where is wrong, so I want to seek advice, how to make c # when debugging, throw an exception is automatically interrupted, and locate the program code? It can be? Thanks for your bosses first!

CodePudding user response:

Change the solution configuration to Debug mode
  •  Tags:  
  • C#
  • Related