It is currently May 2nd, 2024, 10:30 am

Debugging

Get help with creating, editing & fixing problems with skins
CarlPalmer
Posts: 13
Joined: December 22nd, 2012, 6:00 pm

Debugging

Post by CarlPalmer »

How do I check the contents of variables?

There must be a fairly straight forward manner, but I can't seem to figure it out. I set a string meter to the value of a variable, but it gave me the formula, not the value.

Anyone have any good methods of debugging?
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Debugging

Post by jsmorley »

CarlPalmer wrote:How do I check the contents of variables?

There must be a fairly straight forward manner, but I can't seem to figure it out. I set a string meter to the value of a variable, but it gave me the formula, not the value.

Anyone have any good methods of debugging?
That particular case is a little tricky, as variables are stored as "strings" until they are used. If the functionality using them accepts a formula, then the formula string is evaluated and used. String meters do not evaluate formulas in the Text= option, so you will just get the formula displayed.

One solution is to create a Calc measure:

[Variables]
MyVar=(2*4)

[MeasureDebugVar]
Measure=Calc
Formula=#MyVar#

Now in the About / Skins tab you will find the value of MeasureDebugVar, which will be 8 in this case.
CarlPalmer
Posts: 13
Joined: December 22nd, 2012, 6:00 pm

Re: Debugging

Post by CarlPalmer »

Perfect! Thanks!