Please read the new rule regarding the restriction on the use of AI tools. ×

Help in Debugging in C++

Revision en2, by crazy_creed, 2020-04-13 04:47:40

Hey everyone, Many a time we pass STL containers like the map, set, vectors as parameters to the functions.

Problem: While debugging code in C++. Specifically using step into option we can enter in that function but first, it sometimes opens hell lot of standard library files like stl_map.h, etc.

It is a bit frustrating to watch tens of library files, which is of no concern while debugging your code.

How to skip these standard library files to open in between the debugging. I had tried on CodeBlocks and Visual Studio Code.

For those who didn't face this problem. Problem generation: Make any function and pass a map into it. Make some insertion into it return that map. Now use step-wise debugging. You will get that. It is one way of generating the same scenario. You can do whatever way you want.

Any suggestion ???. It seems a very basic need but I had not yet find out a way to deal with. Please suggest a way to it.

Tags c++, #beginner, debugging, c++ stl

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English crazy_creed 2020-04-13 04:47:40 0 (published)
en1 English crazy_creed 2020-04-13 04:46:11 1002 Initial revision (saved to drafts)