Author Topic: debugging vector exceptions  (Read 2669 times)

Offline Erarog

  • Single posting newcomer
  • *
  • Posts: 2
debugging vector exceptions
« on: January 07, 2012, 08:56:29 pm »
Hello,

When I was trying to debug my project (with the standard debugger, on a windows pc), I stumbled upon a problem. When I tried to access an element out of range through the vector.at() function an exception was thrown and the program freezed. When I used the latest nightly build I noticed the debugger stopped in the header file, where the exception was thrown. Is there any way to find out which call to the vector.at() function caused the exception? Any help would be greatly appreciated.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: debugging vector exceptions
« Reply #1 on: January 08, 2012, 12:29:23 am »
You can use the callstack/backtrace window. It will show you all the list of function with has called the vector::at.
If you're using 10.05 or trunk nightly build I suggest to switch to debugger's branch nightly build,
because the switching to frame is know to be broken in these versions.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Erarog

  • Single posting newcomer
  • *
  • Posts: 2
Re: debugging vector exceptions
« Reply #2 on: January 08, 2012, 01:52:22 pm »
Thank you, that worked.