Page 1 of 1

Capturing Messages in Realtime

Posted: Mon May 23, 2011 9:46 pm
by townsend
Is there any way to Capture Messages in Realtime?

Right Click on a DataGrid and you'll see a Send Message
option with about 100 possible Messages. I'm having
trouble figuring out which Messages fire when.

Is there was some way to watch the Messages being
fired in Realtime. Then I would know which Messages
happen when. Maybe I'm missing something simple here.

What's the best way to discern Message firing order?

Re: Capturing Messages in Realtime

Posted: Mon May 23, 2011 11:33 pm
by mwieder
Launch the messagewatcher stack from the Development menu.

Re: Capturing Messages in Realtime

Posted: Tue May 24, 2011 11:52 am
by BvG
watch out with the message watcher. the IDe can sometimes fire dozens of messages per milliseconds, at which point you either force quit or wait lots of minutes for all those messages to be handled and shown in the message watcher.

Re: Capturing Messages in Realtime

Posted: Tue May 24, 2011 1:50 pm
by FourthWorld
You may find my Flight Recorder handy - it logs messages similarly to LiveCode's Message Watcher, but allows you to define message to exclude (like mouseMove which is sent far too frequently to be worth logging), has defaults for reasonable filtering already set, and indents the output so you can more readily see the calling chain,

4W Flight Recorder is available in the Stacks section of RevNet -- in LiveCode, see Development->Plugins-<GoRevNet

Re: Capturing Messages in Realtime

Posted: Tue May 24, 2011 7:50 pm
by townsend
Thanks guys-- The Message Watcher can now Suppress messages as well--
BUT it automatically clears the list-- constantly, which makes it near useless.
For instance, just keep an eye on the time stamp of the first Message.

The 4W_Flight_Recorder is MUCH better. I especially like the way it
displays the hierarchy of the Messages. They should just swap out the
code from the built in Message Watcher with the Flight Recorder code.

What's that MS column about?

Re: Capturing Messages in Realtime

Posted: Tue May 24, 2011 7:55 pm
by FourthWorld
Milliseconds. Because of the overhead of the tool itself those times are approximate, but can be useful for finding bottlenecks in code.