Is there some \"default function\" to print an object like a string on the GDB when we are debugging C++ applications? Something like: toString();
Or my class have t
gdb has a built-in print command that you can call in gdb on any variable or expression to see its value. You should look at the gdb documentation for details. You can find the full manual here and a decent intro guide can be found here
print