DEBUG PAUSE Shortcut

Post Reply
davey110
Posts: 99
Joined: Mon Dec 26, 2016 11:01 pm
My devices: iPhone SE 2020
iPad mini 2
Flag: Canada

DEBUG PAUSE Shortcut

Post by davey110 »

I made a shortcut for DEBUG PAUSE by writing a User Defined Function "dbp", which is much faster to type. This is extremely convenient when debugging a program and you temorarily need pauses in several places. It can save a lot of typing.

My function is a multi-line DEF statement:
DEF dbp
DEBUG PAUSE
ENDDEF

I'm sure this could be written with one statement i.e. a single line DEF, but I haven't been able to get it right. Is there a way to do it? I don't want to type anything more than "dbp" (or even just "d" would work, but I prefer to keep it obvious what it means).

[Other commands e.g. "END", "STOP", and even "PRINT" (without an argument) can also be written as a DEF function.]

Post Reply