Watchdog

new topic     » topic index » view thread      » older message » newer message

If you are trying to track down a pesky bug, or want to observe
changes in something like mouse coordinates in real time (without
using the trace) - here's how:

type watch (object x)
  position(1,1) -- or wherever
  puts(1,"                 ") -- clear a space for new text
  position(1,1)
  ? x
end type

Now, just change your variable declaration from, for example,
atom z
to
watch z
or from
object mousecoords
to
watch mousecoords
Voila! You now have a real-time watchdog.

Irv

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu