Hacker News new | ask | show | jobs
by thealig 1886 days ago
Debugging in C++, is a bit of a pain sometimes. GDB tools are good paired with an IDE like VSCode, but due to the abstractions in C++, inspecting variables require verbose code - beyond the convenience of debugging in a higher level language like Python or even Java as you suggested.

Eg: tracking the values of a std::vector isn't obvious, since there is std:begin and std::end iterators in the vector namespace and you have to manually dereference the whole range in the debugger.

1 comments

I don't know any ide which doesn't display an std::vector as an array in their gui
It could be I may be missing a plugin. Which IDE do you use?