Tiziano_mk schreef:
Vincent Snijders ha scritto:
Yes, of course. Sorry for adding to the confusion.
If you want your app to behave as on linux compile with -WC or add
{$APPTYPE CONSOLE} to you main source file.
Vincent
as I just said to Graeme:
mmh, I know that, but I asked why on linux, with writeln, I am able to
send text to the "IDE Debug Output", the window the debugger sends it's
messages, not the console, and if it's possible to make the same thing
on windows or if this is a OS (Windows, not Linux) limitation.
maybe I cannot explain well bacause of my poor english :-(
Maybe I cannot explain well because of my poor english :-(
But I will give another try.
If you choose for APPType GUI or compile with -WG (a windows feature, there is no
equivalent in linux), the stdout of the application is closed. Therefore nothing can
be written to stdout of the debuggee and nothing is seen on gdb stdout's and
therefore nothing is seen on "IDE Debug output".
If you want to be able to writeln (or debugln to stdout) in Windows, you have to set
AppType to console (Linux has no apptype support and its (only) apptype could be
regarded as console). If you do a writeln or a debugln when the AppType is console,
the text is written to stdout. Gdb has passed its stdout handle to your app (the
debugee) and therefore text written to stdout, will be written to gdb's stdout,
which is shown in the "IDE Debug output".
Vincent
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives