Re: Writeln alternative for GUI applications?
- From: "Paul E. Schoen" <pstech@xxxxxxxxx>
- Date: Fri, 4 May 2007 18:10:03 -0400
<Dale.Ingold@xxxxxxx> wrote in message
news:fq7n33pj5lui22atd437h2e71663vvh683@xxxxxxxxxx
On Fri, 04 May 2007 20:03:58 GMT, Ikke <ikke@xxxxxxx> wrote:
David Kerber <ns_dkerber@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
news:MPG.20a55b733ac8e237989b09@xxxxxxxxxxxxxxxxxxx:
<snip>
VB uses "debug.print" as an equivalent, which prints to the immediate
window when running in the IDE. Maybe Delphi has an equivalent?
I hope so - it's that equivalent I'm looking for :)
Ikke
Finally! A topic on which I can say something useful!
I use the OutputDebugString function to write out debugging info. When
running the program under the Delphi IDE, the lines show up in the Events
window. For when I'm running it outside of the IDE, I use the DbgView
program from sysinternals.com to capture and display them.
--
Dale
I wish I knew about that function a while ago. I added a separate Debug
form with a Memo, and at critical points in the program I wrote a line of
information which told me what procedure I was entering or exiting, as well
as a time stamp with 0.1 second accuracy. That was helpful in debugging my
serial interface application, which had to send strings or characters to
the serial port, wait for some time, and then read back from the input
buffer. I was able to see where sometimes my timeout loops went for quite a
few iterations, while at other times the expected event happened just about
immediately.
My debug window remains hidden, but I have a menu item to view it. When the
program closes, it is written to an <application>.dbg text file.
Paul
.
- References:
- Writeln alternative for GUI applications?
- From: Ikke
- Re: Writeln alternative for GUI applications?
- From: David Kerber
- Re: Writeln alternative for GUI applications?
- From: Ikke
- Re: Writeln alternative for GUI applications?
- From: Dale . Ingold
- Writeln alternative for GUI applications?
- Prev by Date: Re: Writeln alternative for GUI applications?
- Next by Date: Re: Writeln alternative for GUI applications?
- Previous by thread: Re: Writeln alternative for GUI applications?
- Next by thread: Re: Writeln alternative for GUI applications?
- Index(es):
Relevant Pages
|