I know that with VisualStudio
, there are more possibilities to view the values in a std::vector v
, like v._first, 100
-> displays the first 100 elements, or changing some log file. Is there a way to do this in KDevelop
under Ubuntu 14.04
?
Asked
Active
Viewed 473 times
1 Answers
1
The GDB plugin allows you to enter plain GDB commands (see the bottom line edit in the GDB tool view).
Then it just boils down to printing the vector, see here for more information and options: How do I print the elements of a C++ vector in GDB?