Skip to content

debugging

codeCatLady edited this page Sep 14, 2022 · 5 revisions

(this is in progress, just accumulating notes)

  • Answer()
  • Message()
  • log Value [ with arguments ] e.g.
variable tList as List
get property "name" of my script object
push the result onto tList

get property "id" of my script object
push the result onto tList

log "Widget %@ has id %@" with tList
  • it seems that most of the time, the output from log goes to the lcb test "console".
  • however the dictionary entry on log says on the scripting side, to use the following to capture the log entries.
on logChanged pLog
    write pLog to stdout -- or put, or answer
end logChanged