When I use my debugger (in my particular case it was QT Creator along with GDB that inspired it) to my C ++ code, sometimes even after calling make clean followed by make , the debugger seems to worry.
Sometimes it seems to line up with a different line number of code and will jump. Sometimes it is disconnected in one line, sometimes it is completely disconnected, and it will jump in steps.
In other cases, this will worry, entering into something I didn’t ask him to enter, for example, when passing a function call, he can go into the initialization procedure of the string, which is part of it.
When I get seg errors, sometimes he can tell me where this happened, and in other cases he can’t even display question marks for which functions are called code and where, and all I see is an assembly, even time as repeating the same code.
It seems I can’t understand the pattern that causes these crashes, and sometimes my debugger behaves fine.
What are the theoretical causes of these debugger debugger errors, and what are the specific steps that I can take to prevent them?
source share