On Wed, 21 Jun 2017 02:17:27 -0700 (MST) alexchernoff <alexchern...@hotmail.com> wrote:
> Peace to all, > > I have some Gb projects that are in Application.Daemon mode. But sometimes > if process dies for whatever reason, I can't see what the last error was. I > have to run it in a console without daemonizing and wait for it to die and > show last reason (like "#13: Null object" or something). > > Can this be logged to a file? So at least the last output the interpreter > spits out is logged... > > Cheers! > > > In this case, probably the easiest is to redirect stdout and stderr to a file somewhere. The commands you should look at are: OUTPUT TO and ERROR TO (and you'll have to write the necessary guff to set up the file, etc etc of course) hth bruce -- B Bruen <adamn...@gnail.com (sort of)> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user