mlse
06-15-2007, 12:46 PM
Hi all,
I've just starting writing C++ again on Linux after a long break. Having gotten comfortably used to the way in which PHP leads you by the hand through everything; going back to C++ was something of a shock!
Anyway, I got pissed off with gdb and it's really useless debugging information and so I found this: http://valgrind.org/
It is the best debugging tool that I have ever found for Linux! I haven't used the visual front-end (Valkyrie) yet, but the Valgrind tool itself is great! It effectively provides a complete VM for your C++ to run on and keeps tabs on all your memory allocations and will warn you, for example, if you are overruning the end of an array, even if the code does not crash. I think it even handles multi-threaded stuff (for example it will, I think, tell you exactly where, why and how a race condition is occuring).
I hope that is useful to someone! Its speeded up my development time immeasurably - no more trying to figure out exactly where that infuriating segmentation violation is occurring ... :thumbsup:
I've just starting writing C++ again on Linux after a long break. Having gotten comfortably used to the way in which PHP leads you by the hand through everything; going back to C++ was something of a shock!
Anyway, I got pissed off with gdb and it's really useless debugging information and so I found this: http://valgrind.org/
It is the best debugging tool that I have ever found for Linux! I haven't used the visual front-end (Valkyrie) yet, but the Valgrind tool itself is great! It effectively provides a complete VM for your C++ to run on and keeps tabs on all your memory allocations and will warn you, for example, if you are overruning the end of an array, even if the code does not crash. I think it even handles multi-threaded stuff (for example it will, I think, tell you exactly where, why and how a race condition is occuring).
I hope that is useful to someone! Its speeded up my development time immeasurably - no more trying to figure out exactly where that infuriating segmentation violation is occurring ... :thumbsup: