Capturing Messages in Realtime

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm
Location: Seattle, USA

Capturing Messages in Realtime

Post by townsend » Mon May 23, 2011 9:46 pm

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?

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Capturing Messages in Realtime

Post by mwieder » Mon May 23, 2011 11:33 pm

Launch the messagewatcher stack from the Development menu.

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Re: Capturing Messages in Realtime

Post by BvG » Tue May 24, 2011 11:52 am

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.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Capturing Messages in Realtime

Post by FourthWorld » Tue May 24, 2011 1:50 pm

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
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm
Location: Seattle, USA

Re: Capturing Messages in Realtime

Post by townsend » Tue May 24, 2011 7:50 pm

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?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Capturing Messages in Realtime

Post by FourthWorld » Tue May 24, 2011 7:55 pm

Milliseconds. Because of the overhead of the tool itself those times are approximate, but can be useful for finding bottlenecks in code.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”