[Lazarus] Lazarus documentation
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Mon Dec 28 09:36:40 CET 2009
With Windows if you need to output something to the console in a GUI app, you use OutputDebugString. This will output to the console when running the app under gdb.
Thanks.
-Phil
----- "Brad Campbell" <brad at wasp.net.au> wrote:
> Hans-Peter Diettrich wrote:
> > Brad Campbell schrieb:
> >
> >>> On Windows you can uncheck the option (see above), to get a GUI
> >>> application with an attached console. A very nice feature for
> >>> debugging, not available on most other platforms.
> >>
> >> Actually not _required_ on other platforms. Other platforms let you
>
> >> run an application from a console and witness its output should you
> so
> >> desire, without having to recompile the application with odd
> options.
> >
> > Thanks, I didn't know that it's so easy.
> >
> > The same procedure should be possible on Windows?
>
> No, on Windows you need to compile the app as console mode to have it
> write anything to a console
> window, otherwise it just launches the application and returns you to
> the console prompt.
>
> I had to debug some Win stuff recently, and as I've been lucky enough
> to have avoided it for many
> years now, this oddity caught me several times.
>
> Brad
> --
> Dolphins are so intelligent that within a few weeks they can
> train Americans to stand at the edge of the pool and throw them
> fish.
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
More information about the Lazarus
mailing list