tags:

views:

9

answers:

0

I'm using the latest Xcode 3.2.

I have a lot of macro calls in my code which are used for debugging. They generate very useful information about the current execution path and help a lot to understand what's going on. That said, those macros practically look like this:

LogNote(@"unload foo controller because bar controller has replaced it")

All right, even if some people might find this silly because there's also the option of using the debugger with breakpoints, I find this highly useful. It helps me a lot. But the only thing that really hurts is the code beeing scattered so much with this sort of thing. Even though comments are "bothering" almost in the same way, and lets face it, this is a sort of comment thing, I find these macros are disturbing much more than comments.

So what would be great: If there was a way to tell Xcode to print these special macros in a light-gray color, for example, so that they're not so "offensive". They shouldn't jump into the developer's eye so much and distract from the real code.

Or another option, maybe, is to hide the lines of these calls completely?

What options do I have, if any?

(please consider posting a solution even if you think this macros are stupid! I know it's kind of a believe sort of thing if using the debugger or going down this route. I had great success with this, so I'll stick to it)