GLBasic forum

Main forum => GLBasic - en => Topic started by: bigsofty on 2007-Jul-05

Title: Debug CLS
Post by: bigsofty on 2007-Jul-05
Could we have a command for clearing the debug console, after a few regular DEBUG prints its very confusing whats happening.

for example a loop with...

Code (glbasic) Select
   DEBUG "MX: "+mx +","
    DEBUG "MY: "+my+","
produces...

Code (glbasic) Select
MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,MX: 0,MY: 0,...with the debug console scrolling continuously

If we had the command DEBUGCLS

Code (glbasic) Select
   DEBUGCLS
    DEBUG "MX: "+mx +","
    DEBUG "MY: "+my
Code (glbasic) Select
MX: 0,MY: 0or

Code (glbasic) Select
   DEBUGCLS
    DEBUG "Mouse Co-Ordinates"+"\n"
    DEBUG "------------------"+"\n"
    DEBUG "MX: "+mx +"\n"
    DEBUG "MY: "+my+"\n"
produces...

Code (glbasic) Select
   Mouse Co-Ordinates
    ------------------
    MX: 0
    MY: 0
Just a suggestion ;)
Title: Debug CLS
Post by: Quentin on 2007-Jul-05
good idea I think
Title: Debug CLS
Post by: Schranz0r on 2007-Jul-05
You can simple Debug mx or any other Var.  @ the right side of the IDE !
New are Array[] Debuging !
Thats Nice , Gernot :D
Title: Debug CLS
Post by: Kitty Hello on 2007-Jul-05
If you need DEBUGCLS, you can use PRINT on the screen as well for debugging. No?
Title: Debug CLS
Post by: bigsofty on 2007-Jul-05
I can use Print but the console is free debug display space and easier to read. So if I need to watch what happens on the screen without the screen being blocked and overwritten with debug stubs, then the console would be ideal.

CLEARCLS, used in this way allows a basic debug variable 'watch' functionality.
Title: Debug CLS
Post by: Kitty Hello on 2007-Jul-05
Well, OK. I'm adding it. I thing DEBUG "\f" is what I'll do. \f is a form-feed (new page for a printer), that fits pretty good, OK?
Title: Debug CLS
Post by: bigsofty on 2007-Jul-06
Hehe, thanks Gernot! :)