syko / SublimeLogMagic

Javascript console.log statements at the tip of your fingers
25 stars 5 forks source link

var = function(anonymousFunction) should log var #12

Open cmalard opened 7 years ago

cmalard commented 7 years ago

Hello @syko :-)

Love your plugin \o/

Got this:

console.log('myVar', myVar)
var myVar = myFunc(myParam => myParam === myOtherVar);
console.log('myVar', 'myOtherVar:', myOtherVar)

I tried the ES5 version, it's more problematic:

console.log('myVar', myVar)
var myVar = myFunc(function (myParam) { return myParam === myOtherVar; });
console.log('myVar', 'myParam:', myParam)

It should generate all the time:

console.log('myVar', myVar, 'myOtherVar:', myOtherVar)

Not sure this is possible.