better code that works in the latest versions of the BAS without problems:
_sa = function (id){
log(id)
ScriptWorker.SetCurrentAction(id)
}
to stop logging :
_sa = function (id){ }
@selector said in как вивести названия переменной в лог?:
посоветуйте как вивести в лог список пустих переменних " ", а именно их названия
@support said in Получить список всех созданных переменных, отладка:
@out Все переменные и их значения можно получить выполнив
var AllVariablesTable = Object.keys(this) .filter(function(e){return e.indexOf("VAR_") == 0}) .reduce(function(all,one){ try { all[one.slice(4)] = eval(one) }catch(e) { all[one.slice(4)] = "undefined" } return all; },{}) log(JSON.stringify(AllVariablesTable))