Re: Log file (debug)
- From: "Ron Keen" <rtkeen@xxxxxxxxx>
- Date: 30 Jun 2006 05:32:49 -0700
"Alan" <alprice98@xxxxxxxxxxx> wrote:
Hi,
I have a procedure which writes info to a log file. But I only need to activate this procedure only when debug the program (live run don't need to use this procedure).
How can I do that?
Thanks
I've done something similar in a very simple way.
I've created a menu item (say, in the File menu) called Debug, and assigned the Ctrl-D shortcut to it. Then I set Visible to False. In the handler, I merely invert a debug flag to indicate the current state (always starts as false). That way, I can always press Ctrl-D to invoke debugging, but it's hidden to the general user.
HTH
Ron Keen
.
- References:
- Log file (debug)
- From: Alan
- Log file (debug)
- Prev by Date: Re: Captain Jake's Top Ten List of what I'd like to see in the nextversionofDelphi
- Next by Date: Re: Captain Jake's Top Ten List of what I'd like to see in the nextversionof Delphi
- Previous by thread: Re: Log file (debug)
- Next by thread: Be aware of your bug reports in QC.
- Index(es):