[Gambas-user] No-op command
José J. Rodríguez
jose.rodriguez at cenpalab.cu
Sun Jul 18 19:25:48 CEST 2021
On 18 July 2021 13:00:03 GMT-04:00, Tobias Boege via User <user at lists.gambas-basic.org> wrote:
>On Sun, 18 Jul 2021, Karl Reinl wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA512
>> Am Montag, den 19.07.2021, 00:19 +0930 schrieb bb:
>> > I need a Gambas command that does nothing, like a NOP, where I can
>> > set
>> > a breakpoint for debugging, any good ideas?
>> > tia
>> > bruce
>> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>> Debug "stop" or Print "stop"
>In fact, there is a STOP keyword, which acts like a breakpoint.
>But this is *always* a breakpoint when encountered in debug mode,
>not something you can turn on or off dynamically.
I tend to use a global "flag" together with if statements in the code, for debug output where needed. This could work for stop?
>Otherwise, I'd use a constant statement like
>It's short, quick, strange and reasonably easy to find for you
>(but not easy to interpret for your coworkers, I guess). Unlike
>Debug and Print, it does not pollute the output of your program.
Sent from my Android device with K-9 Mail. Please excuse my brevity.
More information about the User