I sometime finds very difficult to debug my code. Please suggest a good c/c++ debugger .
Microsoft Visual Studio
1 Like
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 - Apache log4j 1.2 - Short introduction to log4j and originally it’s from “The Practice of Programming” as stated on the page…