• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Watching variables

Hi,

I want to debug a task and can single step it in Tasker. Can someone please guide me (perhaps point me somewhere) that when I am single stepping, how can I inspect the value of local and global variables?

So ideally, I should be able to do like this for a ten step task:

Step, step, inspect variable, continue step step, inspect variable, ....

Regards
Aman
 
When you ae single-stepping through the Task ...

Select back arrow
Select VARS
Examine variables
Select TASKS
Select your Task
Notice that you are positioned at the same location as when you left
Repeat as needed

... Thom
 
Hi Thom,

Thanks. With your guidance, I can single step and watch the global variables. However, the VARS tab did not show the local variables that I was interested in. Is there a way to enable seeing that?

Regards
AK
 
I don't know a method to examine the value of a local variable outside of the task that uses it.

The only thing I could suggest it to make the local variable a global variable and use the technique I posted earlier.

... Thom
 
When debugging in Tasker I tend to use a Flash action to report on variable contents. Simply insert the Flash at the appropriate place and when debugging is complete remove the Flash.

A1: Flash [ Text:%temp Long:On ]

... Thom
 
Back
Top Bottom