Code::Blocks Forums

User forums => Help => Topic started by: Erarog on January 07, 2012, 08:56:29 pm

Title: debugging vector exceptions
Post by: Erarog 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.
Title: Re: debugging vector exceptions
Post by: oBFusCATed 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.
Title: Re: debugging vector exceptions
Post by: Erarog on January 08, 2012, 01:52:22 pm
Thank you, that worked.