exception debugging in Visual C++ 2008 Express
- From: Luna Moon <lunamoonmoon@xxxxxxxxx>
- Date: Sun, 6 Jul 2008 11:31:46 -0700 (PDT)
Hi all,
I am using Visual C++ Express 2008 and I am having an exception and I
am trying to find it via debugging...
Whenever it occurs, VS tells me that "there is no source code
available to view", and it switched to "disassembly code" then I got
completely lost.
The call stack is also a complete mess and I couldn't figure out which
portion of the code is raising the exception.
After a whole day's struggling with it, I've found the exception was
actually simple:
Here is the code:
if (a.size() != b.size())
throw Constructor("a must have same size as b", "myclass");
Because it's a huge project and many people are working on it, and
also because I am new,
I spent so much time on finding it and I got it through trial and
error.
My question is: is there a way to see the error message "a must have
same size as b" in Visual Studio?
Because I couldn't see it, so I spent so much time trial and error...
If I could see the error message, it could be much easier...
Any other thoughts on debugging tools for C++ using Visual Studio?
Please also give me some pointers on productivity tools in Visual
studio for working with C++?
Thanks a lot!
.
- Follow-Ups:
- Prev by Date: Re: how do I convert back a boost shared_ptr into a reference?
- Next by Date: Re: exception debugging in Visual C++ 2008 Express
- Previous by thread: how do I convert back a boost shared_ptr into a reference?
- Next by thread: Re: exception debugging in Visual C++ 2008 Express
- Index(es):
Relevant Pages
|