I sometime finds very difficult to debug my code. Please suggest a good c/c++ debugger .
Microsoft Visual Studio
I’m a big fan of GDB. My second favorite is Microsoft visual studio.
Choose a good debugger, keep using it. Once you develop your familiarity with any debugger, you would start finding debugging a fun.
I personally agree with Kernighan
…stepping through a program less productive than thinking harder and adding output statements…
My recommendation is to use logging instead.
The citation I know from log4j - http://logging.apache.org/log4j/1.2/manual.html#Introduction and originally it’s from “The Practice of Programming” as stated on the page…