cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Debugging in Eclipse
Debugging in Eclipse
Jul 17, 2011 at 3:42pm UTC
cdd
(25)
Hi,
Is there any way to view the contents of a std::vector while debugging in eclipse? When i was using Visual Studio I could view the vectors contents while debugging. When i go to the watches it just shows pointers?
thanks
Jul 17, 2011 at 5:05pm UTC
jsmith
(5804)
Given a vector<T>, cast _M_start to T* and dereference to see the first element.
(Note, this is OTOH without looking in detail at Eclipse to see if there is a better way.)
Topic archived. No new replies allowed.