joe69's blog

By joe69, history, 6 weeks ago, In English

Do you guys use a debugger provided by an ide or debug using print statements only

 
 
 
 
  • Vote: I like it
  • +11
  • Vote: I do not like it

»
6 weeks ago, # |
Rev. 2   Vote: I like it +3 Vote: I do not like it

I don't know about others but what i do is -->

#define deb(x) cout << #x << "=" << x << endl;

and then use it like deb(variable) I don't use debugger (even don't know how it is used);

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

I use debuggers a lot. I think most people don't for some reason.

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

I use the codeblocks's debugger a lot. I wonder how can some people doing CP without debuggers Orz :))

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

I (and I think many others) like printing statements, as I can grab a bunch of information at once and have a better general view of what the code is doing, rather than waiting for each variable to change its value.