Advice on debugging C++ on Linux [message #1819066] |
Tue, 07 January 2020 01:47  |
Eclipse User |
|
|
|
I always use gdb for C/C++ programs. Unfortunately, latest features of C++ don't seem to fit well with gdb.
An example is a lambda function calling about 5 additional stack frames, and most STL stuff (std::unordered_map) seems to hide away its internals, so that it makes it hard for me to find each element's exact memory location or its values.
It has not been much of an issue till now, since I don't really like using these modern features anyways. But right now the company is making me debug another person's program, and these lambdas and STL containers are really killing me right now...
Any general advice? A better debugger perhaps? Or gdb with plugins?
|
|
|
Re: Advice on debugging C++ on Linux [message #1835910 is a reply to message #1819066] |
Wed, 16 December 2020 05:22  |
Eclipse User |
|
|
|
mack karen wrote on Tue, 07 January 2020 06:47I always use gdb for C/C++ programs. Unfortunately, latest features of C++ don't seem to fit well with gdb.
An example is a lambda function calling about 5 additional stack frames, and most STL stuff (std::unordered_map) seems to hide away its internals, so that it makes it hard for me to find each element's exact memory location or its values.
It has not been much of an issue till now, since I don't really like using these modern features omegle xender anyways. But right now the company is making me debug another person's program, and these lambdas and STL containers are really killing me right now...
Any general advice? A better debugger perhaps? Or gdb with plugins?
[Updated on: Wed, 16 December 2020 05:23] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.07043 seconds