You are not logged in.

gkaefer

Trainee

  • "gkaefer" started this thread

Posts: 46

Location: Salzburg

  • Send private message

1

Saturday, November 19th 2011, 2:45pm

how to print a variable value on screen for debugging?

what I want to achieve for debugging:
if I do on an icon a mouseover, the content of variable volume-default should be displayed for a amount of seconds so I can verify it.
down code is of course only an excerpt, and it does not really work for me. Where is/are the error(s)? Is any more usable solution available?

Source code

1
2
3
<settings name="themevars" volume-default="0.1" />
<plugin name="soundON" visible="true" onover="loop1(get(plugin[soundON].visible),get(settings[themevars].volume-default))" />
<action name="loop1"> loop(if(%1 == "true"),showtext(5,%2));</action>


thanks in advance,
Georg

2

Sunday, November 20th 2011, 11:58am

Hi,

you can trace out the value from any variables by using the trace action:
http://krpano.com/docu/actions/#trace

and if you want you can also open the log automatically,
e.g. (the trace action is resolving the variables automatically to its value)

Source code

1
2
showlog();
trace('variable=', variable);


best regards,
Klaus

gkaefer

Trainee

  • "gkaefer" started this thread

Posts: 46

Location: Salzburg

  • Send private message

3

Sunday, November 20th 2011, 5:40pm

danke dir...
Georg

Similar threads