I don't know what you expected, but C++ doesn't work that way.

When you debug a C++ program, you practically never get "the line that caused the error". It is your job to then really and truly...