Re: Writeln alternative for GUI applications?




<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


.



Relevant Pages

  • Re: Delphi 8 form not moving in design mode
    ... no window can be docked to ... > the code editor in Delphi 8 IDE like Class Explorer in previous Delphi ...
    (borland.public.delphi.non-technical)
  • Re: Writeln alternative for GUI applications?
    ... window when running in the IDE. ... Maybe Delphi has an equivalent? ...
    (comp.lang.pascal.delphi.misc)
  • Re: Writeln alternative for GUI applications?
    ... window when running in the IDE. ... Maybe Delphi has an equivalent? ...
    (comp.lang.pascal.delphi.misc)
  • Re: Something Delphi does better than VS
    ... For me, the #1 feature better in Delphi than VS is the IDE itself, how ... everything can be it's own window and take full advantage of my multiple ... VS Exception handling is a big thing I miss from Delphi, ... Application level exception handler makes coding so much easier in Delphi ...
    (borland.public.delphi.non-technical)
  • Re: Delphi 2005 update 1 is out!
    ... Delphi 2005 Update 1 Fixes ... When importing an assembly if the types Pointer or Exception are used ... bdpDataAdapter can cause the IDE to lose all key stroke events until ... Using a remote data module may cause an Access Violation. ...
    (borland.public.delphi.non-technical)