Page 1 of 1
How can I debug a value of a variable in JavaScript?
Posted: Wed Mar 12, 2014 1:00 pm
by menglv
How can I debug a value of a variable in JavaScript?
thanks
How can I debug a value of a variable in JavaScript?
Posted: Wed Mar 12, 2014 2:55 pm
by dkelly
s.log(1, "variable = " + variable);
How can I debug a value of a variable in JavaScript?
Posted: Wed Mar 12, 2014 4:41 pm
by freddyp
In Switch 12 there have been changes to reduce the number of messages considerably. As a result of that there is a slight change in behavior for s.log.
Level 1 will still display a message in Switch Scripter, but not in the Messages pane anymore (the same is true for -1 (debug)). So for regular debugging in Switch Scripter you can use that, but should you want to see the message in a running flow you will have to use 2 (or 3).
Note that this is also the case for "Log job info".
How can I debug a value of a variable in JavaScript?
Posted: Thu Mar 13, 2014 4:07 am
by menglv
var re ="5454564";
var s=Switch;
s.log(1,"variable = " + re);
TypeError. Undefined member function 'log' for object '[object FactoryObject]' of type: 'FactoryObject'
How can I debug a value of a variable in JavaScript?
Posted: Thu Mar 13, 2014 3:50 pm
by dkelly
The variable "s" is already defined.
var re ="5454564";
s.log(2,"variable = " + re);
How can I debug a value of a variable in JavaScript?
Posted: Sun Mar 16, 2014 1:10 am
by menglv
Well, it can work.