Ability to choose to enable/disable #D output when calling scripts. #9
jckirton
started this conversation in
Bugs / Features / Ideas
Replies: 1 comment
-
Kitsunet on Discord shared a workaround for this kind of functionality in the meantime: let log = []
function $D(msg){
if(args.debug === true){
#D(msg)
}
}
function $print(msg){
#D(msg)
log.push(msg)
}
//code, use $D("message") instead of #D and $print("message") for general output
return log.join("\n") Alternatively: function $D(msg){
if(args.debug) #D(msg)
}
$D("i only sometimes debug-out!") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For example, maybe
#D
only gets triggered when you preface the script name with#
, like#https.echo {input:"foo"}
, or they happen by default as usual, but if you input{#D:false}
as an argument, it gives normal output.#D
output would still only be an option on the script's host user of course, and ideallyreturn #D(thing)
would still work like it does now.Beta Was this translation helpful? Give feedback.
All reactions