1. Watchdog

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 message » categorize

2. Re: Watchdog

On Mon, 2 Nov 1998 21:44:36 -0500, Irv Mullins <irv at ELLIJAY.COM> wrote:

>type watch (object x)
>  position(1,1) -- or wherever
>  puts(1,"                 ") -- clear a space for new text
>  position(1,1)
>  ? x
 return 1 -- <<< SORRY! It doesn't work without this line!
>end type

Having to reply to my own messages ;(
bah humbug!

Irv

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu