Author |
|
Mitch Groupie
Joined: September 26 2010
Online Status: Offline Posts: 43
|
Posted: December 26 2010 at 16:08 | IP Logged
|
|
|
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 |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: December 26 2010 at 19:38 | IP Logged
|
|
|
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 |
|
|
mertfg Newbie
Joined: January 25 2011 Location: United States
Online Status: Offline Posts: 5
|
Posted: February 03 2011 at 04:19 | IP Logged
|
|
|
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 |
|
|