Page 1 of 1
Debug without any parameter to insert blank line
Posted: Thu Oct 11, 2007 3:01 am
by Blue
Just a timesaver:
writing
Debug
is faster than writing
Debug ""
to skip a line...
especially on some keyboards where the Quote character is not located in a convenient place,
and even more so for people who, like me, are unskilled typists !!!
Posted: Thu Oct 11, 2007 7:49 am
by DoubleDutch
A nice feature would be some way of NOT printing a CR at the end of a debug message.
Maybe an optional flag?
Re: Debug without any parameter to insert blank line
Posted: Thu Oct 11, 2007 8:08 am
by PB
@Blue: Good request, reminds me of PRINT on the Commodore 64.

You can do it in the meantime with a macro:
Code: Select all
Macro Blank
Debug ""
EndMacro
Debug "1"
Blank
Debug "2"
Blank
Debug "3"
Posted: Thu Oct 11, 2007 9:58 am
by gekkonier
Code: Select all
Debugstr.s = ""
Macro DebNL(val)
Debug val
Debug ""
EndMacro
Macro DebLF
Debug ""
EndMacro
Macro Debadd(val)
Debugstr = Debugstr + val
EndMacro
Macro Debprint
Debug Debugstr
Debugstr = ""
EndMacro
Debug("huhu")
DebLF
Debug("haha")
Debadd("a")
Debadd("b")
Debadd("c")
Debprint
DebNL("hehe")
Debug("hoho")
Quickly workaround, not good style.
Re: Debug without any parameter to insert blank line
Posted: Sat Oct 13, 2007 6:59 am
by Blue
PB wrote: .. reminds me of PRINT on the Commodore 64.

You can do it in the meantime with a macro: [...]
Reminds me of PRINT in GFABasic on my Atari1040 !!! The whole PureBsic envrironment throws me back to my Atari and GFA Basic days. Those were fun times...
Anyway, many thanks for the Macro suggestion, PB and gekkonier ; that's, of course, basiclly how i've been doing it, using only 2-letter abbreviations though: with only one good hand available to work with, I maniacally look for ways to shorten my typing...

Posted: Sat Oct 13, 2007 7:11 am
by Fangbeast
Blue, if you don't mind my asking, what happened to your other hand?
I've been thinking a lot about accessibility features in all my programs and only thought of the more obvious one (to me) of poor sight such as I am getting as I get older.
Posted: Sat Oct 13, 2007 8:25 am
by Joakim Christiansen
DoubleDutch wrote:A nice feature would be some way of NOT printing a CR at the end of a debug message.
Maybe an optional flag?
Or have a DebugN and Debug.
I also agree with Blue

Posted: Sat Oct 13, 2007 10:20 am
by #NULL
i like the ideas here too. the Debug could have improvements in general.
i.e. auto-casting to allow things like:
Code: Select all
Debug "result = " + function.l() + " (" + Variable.f + ")"
but probably that would be a little bit more work to implement.