good for that?many people works with cout in cpp and printf in c for knowing the data in that point.what's the solution?
Well I either use printf() or CLion's inbuilt debugger
The answer is "whatever works for you, usually both.". Being able to pause, step through your program and inspect the values of your variables is invaluable. Sometimes a print does the job
It depends, sometimes you have a messy code base or a badly designed multi-threading programming or you don't have other dependent libraries debug build, which is in this situation we prefer (or at least i prefer) to use logging instead of the debugger.
Обсуждают сегодня