Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: flying blind Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Mitch
Groupie
Groupie


Joined: September 26 2010
Online Status: Offline
Posts: 43
Posted: December 26 2010 at 16:08 | IP Logged Quote Mitch


Ok, so this is maybe a little stupid of me, but I'm having trouble figuring out how to easily evaluate and debug macros. It would be nice if I could see results of a macro execution. In this case I am trying to capture strings from a serial port using ph_recvstring(1,32). It runs with no error, but I would like to display what it received so I can write case or if statements based on the contents. I've searched the forum and wiki but have not found an explanation on how to evaluate macro execution.

Thanks for your help.

Mitch
Back to Top View Mitch's Profile Search for other posts by Mitch
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: December 26 2010 at 19:38 | IP Logged Quote TonyNo

You could add User Messages that include variable contents after critical macro lines. These will show up in the log.

Example:
User Message | "Backup failed with code " + [LOCAL1]
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
mertfg
Newbie
Newbie


Joined: January 25 2011
Location: United States
Online Status: Offline
Posts: 5
Posted: February 03 2011 at 04:19 | IP Logged Quote mertfg

Hey, I also have been searching for this for quite a while now. I have been trying to write the conditional statements. I am so happy that I stumbled upon this now. Now I will try the solution given here. I will add the user messages at the end after the macro. If I get any errors regarding this, I will get back here. Anyway I would like to thank you for the help provided here.   

__________________
magnetic messenger
Back to Top View mertfg's Profile Search for other posts by mertfg
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum