Easier debugging stl array

Posted by bobobobo on Stack Overflow See other posts from Stack Overflow or by bobobobo
Published on 2010-04-23T18:45:35Z Indexed on 2010/04/24 0:33 UTC
Read the original article Hit count: 556

Filed under:
|
|
|

In MSVC++ I have a vector.

Whenever you go out of bounds of the vector (in debug mode, launched as "Start Debugging"), when you step out of bounds of the vector the program halts with a dialog box:

Microsoft Visual C++ Debug Library
====

Debug Assertion Failed!

Expression: Vector subscript out of range

Abort | Retry | Ignore

So what I want though is the MSVC++ debugger within visual studio to STOP AT THE LINE WHERE THE OUT OF BOUNDS OCCURRED, not give me this dialog box.

How can I cause the program to "break" properly and be able to step through code /inspect variables when an out of bounds occurs on an STL vector?

© Stack Overflow or respective owner

Related posts about msvc++

Related posts about stl