[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Aw: Re: Re: Inline `ifdef style` debugging
From: |
pjodrr |
Subject: |
Aw: Re: Re: Inline `ifdef style` debugging |
Date: |
Thu, 11 Aug 2011 05:40:38 -0700 (PDT) |
User-agent: |
G2/1.0 |
Am Donnerstag, 11. August 2011 14:13:27 UTC+2 schrieb Greg Wooledge:
> The problem with this is that you can't switch to the other function
> later.
this is intended. The idea is to call a script with a debug
or no-debug option. So for the runtime of the script the
debug() function does not change.
> Here, the first call to chatter blows away the test of $verbose, so
> the next time we call it, the fact that we've set verbose=1 is ignored.
> We're stuck in non-verbose mode forever.
if you want a different behaviour you have to test for $verbose
everytime the chatter() is called which was to be avoided.
cheers
- Re: Inline `ifdef style` debugging, (continued)
- Re: Inline `ifdef style` debugging, Steven W. Orr, 2011/08/08
- Re: Inline `ifdef style` debugging, Roger, 2011/08/08
- Who's the target? Was: Inline `ifdef style` debugging, Steven W. Orr, 2011/08/08
- Re: Who's the target? Was: Inline `ifdef style` debugging, Roger, 2011/08/08
- Re: Who's the target? Was: Inline `ifdef style` debugging, Roger, 2011/08/09
- Message not available
- Aw: Re: Inline `ifdef style` debugging, pjodrr, 2011/08/11
- Re: Re: Inline `ifdef style` debugging, Roger, 2011/08/11
- Re: Re: Inline `ifdef style` debugging, Greg Wooledge, 2011/08/11
- Re: Re: Inline `ifdef style` debugging, Roger, 2011/08/11
- Re: Re: Inline `ifdef style` debugging, Greg Wooledge, 2011/08/11
- Message not available
- Aw: Re: Re: Inline `ifdef style` debugging,
pjodrr <=
- Message not available
- Aw: Re: Re: Inline `ifdef style` debugging, pjodrr, 2011/08/11