I want to remove all my debugging printf statements from my code .How can i do this without using conditional debugging by turning on/off debug statements?
Iam using printf just to check whether a particular value is coming wright or not …like below… : printf(“value read %d\n”, a);
No way you can do that, without removing them using your editor.
What you can do is:
Allen Holub recommends in his book
to use the following debug macro:
and use it like this: