- Home /
VS 2013: Breakpoint only if an error happens
Im using VS 2013 professional as editor for Unity 5. I use VS Tools so I can debug. I put some breakpoints on my code but I want to stop execution just if an error happens. For example, I have a breakpoint in a line like this: myArray[indexValue] so if indexValue is out of the range of myArray, an error will appear and the breakpoint executed and stop the running. How cana I achieve this?
EDIT: I can put a condition (for example, if indexValue >= myArray.Lenght) but Im asking if there a generic "on error stop" option :)
Your answer
Follow this Question
Related Questions
Unable to step. Operation is not supported 0 Answers
Impossible to use Visual Studio 2015 Debugger anymore (Unity 5.2.1f) 2 Answers
Visual Studio breakpoint freezes the Unity editor 0 Answers
How do you get OutputDebugString to show up in the Visual Studio output window? 0 Answers
Visual Studio 2015 debugger can no longer attach to Unity after installing RC3 1 Answer