I'm not familiar with anything prefab for mobile, but you're welcome to pull anything out of 4W Flight Recorder that may be useful.
For simple logging a frontscript trapping medsageHandled is most of what you need, along with a way to turn it on and off as you already have above (just add a line in each handler for setting the messageMessages to true/false).
Messagemessages
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9833
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Messagemessages
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: Messagemessages
...but do note that you'd benefit from looking at the code for either 4W Flight Recorder and/or the built-in message watcher stack because the functions and mechanism for handling this aren't documented.
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
- Location: London, UK
Re: Messagemessages
Thanks, I'll add it to the list of "projects todo" once I've finished the current one. Sounds like a useful exercise to try given all of the options and exclusions you are supporting. I did have a look at the code... it looked very well written and easy to follow.FourthWorld wrote: ↑Thu Sep 17, 2020 4:16 pmI'm not familiar with anything prefab for mobile, but you're welcome to pull anything out of 4W Flight Recorder that may be useful.
For simple logging a frontscript trapping medsageHandled is most of what you need, along with a way to turn it on and off as you already have above (just add a line in each handler for setting the messageMessages to true/false).
Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
- Location: London, UK
Re: Messagemessages
Agreed, there was a lot of useful stuff in Richard's stack.
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: Messagemessages
Understatement follows
Agreed, there was a lot of useful stuff in Richard's stack.
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev