Debugging methods I use

27 views
Skip to first unread message

Scott Ferguson

unread,
Feb 13, 2014, 12:38:17 PM2/13/14
to
Screen1.Title to (join... |  variable) in a procedure can display and update the contents of one or more variables while the app is connected to the device or emulator.
Why do it this way?
So I don't have to change my screen layout by adding a label just to display the debug info.
When you remove the debug blocks, the original title will display.
This is useful until we get a watch option on your blocks again.


Do It is another useful feature that can be used for testing and debugging.
I have created a procedure Normalize which should return a number in the range 0 <= degrees < 360.
I can test a call to this procedure using just a call block and number attached to the input socket.

Testing a value with Do It...


Viewing the result:



You can remove the comment after testing also or just delete the blocks.



END.
Reply all
Reply to author
Forward
0 new messages