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 !!!
Debug without any parameter to insert blank line
Debug without any parameter to insert blank line
PB Forums : Proof positive that 2 heads (or more...) are better than one 

- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
A nice feature would be some way of NOT printing a CR at the end of a debug message.
Maybe an optional flag?
Maybe an optional flag?
Code: Select all
Debug("blah",#PB_No_CR)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
Re: Debug without any parameter to insert blank line
@Blue: Good request, reminds me of PRINT on the Commodore 64. 
You can do it in the meantime with a macro:

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"
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")
Re: Debug without any parameter to insert blank line
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...PB wrote: .. reminds me of PRINT on the Commodore 64.
You can do it in the meantime with a macro: [...]

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...

PB Forums : Proof positive that 2 heads (or more...) are better than one 

- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
Or have a DebugN and Debug.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?
Code: Select all
Debug("blah",#PB_No_CR)
I also agree with Blue

I like logic, hence I dislike humans but love computers.
i like the ideas here too. the Debug could have improvements in general.
i.e. auto-casting to allow things like:but probably that would be a little bit more work to implement.
i.e. auto-casting to allow things like:
Code: Select all
Debug "result = " + function.l() + " (" + Variable.f + ")"