User forums > Help
Debugger Help-stepping through a program without going into other files.
verthex:
I just upgraded to a newer version of codeblocks (from 8.x to 10.x) and I noticed that the debugger steps into files related to my project and it includes stl files like list and vectors which I dont really care about stepping through. Is there a way to make the debugger stick to the main file only without having to step into every single std::cout and std::endl?
oBFusCATed:
Hm, are you sure that the problem is in C::B?
Because the real debugger is GDB, C::B is just the wrapper (it starts gdb and issues commands to it, then parses the output).
And as far as I know there is no way to black list functions for the step into command in GDB.
If you explain the problem a bit more clearly, we might help you...
verthex:
This is an example program:
--- Code: ---#include <iostream>
#include <vector>
int main()
{
std::vector <int> value;
value.push_back(0);
std::cout<<value[0]<<std::endl;
return 0;
}
--- End code ---
Basically I set the breakpoint at the line before I use,
--- Code: ---value.push_back(0);
--- End code ---
and I start the debugger and I step through the program using only F7 and I end up stepping into these 4 files.
stl_vector.h
basic_ios.h
locale_facets.h
new_allocator.h
Is there some way to prevent this from happening? I used to be able to debug without seeing those steps in the version 8.x of codeblocks.
Jenna:
This can happen, if you use "Step into" instead of "Next line".
The cause why it did not happen in 8.02 is most likely, that older gdb's have not been able to step into constructors, but newer can.
verthex:
So basically there is no way to turn it off?
Navigation
[0] Message Index
[#] Next page
Go to full version