richard terry ha scritto:
> Can you clear the console from within gambas code?
>
> Wondered, as this would be useful for me at the moment whilst I'm tracking 
> bugs.
>
> Regards
> Richard
>   
I don't know if you can clear the gambas console from a program - 
chances are you can't.

But this could be useful to you: there is an "ERROR TO" statement, and 
you can redirect the standard error elsewhere (a file...); so you can 
"grep" or whatever the file and examine more easily the things.

Benoit: when I start to write complex applications, I first put a log 
routine which the program calls in relevant points, passing a "topic", a 
"level", and the debug message (or sometimes only level and message) - 
this is the same as the linux syslog facility.
The log routine then decides whether to discard the message, if its 
level is lesser than DebugLevel. DebugLevel can be set in code or by 
command line. May be a more sofisticated DEBUG instruction could be 
useful in such cases. Just an idea...

Regards,
Doriano Blengino



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to