Chakroun-Anas / turbo-console-log

591 stars 141 forks source link

console.log jumping out on promise functions #114

Closed jrayga closed 1 year ago

jrayga commented 3 years ago
  function getUsers() {
        $scope.isLoadingData = true
        var promise = UsersFactory.getUsers()
        promise.then(function (data) {
            $scope.users= data.data.result;
            $scope.isLoadingData = false
        }).catch(function (error) {
            $scope.isLoadingData = false
        })
        console.log("🚀 ~ file: Users.js ~ line 151 ~ $scope.users", $scope.users)
   }

    console.log("🚀 ~ file: Users.js ~ line 154 ~ error", error)

Coded in AngularJS 1.8.0.

So when I try to use TCL on this function the console.log jumps out on the promise.then statement, Also when I tried to use TCL on the error variable in the promise.catch statement the console.log jumps outside the getUsers function,

Is this a problem with AngularJS or maybe some of my extensions intervene with TCL?

Extensions list

glaucopater commented 3 years ago

Same issue for me

ImanMahmoudinasab commented 3 years ago

I have it as well.

k4kabirmalik commented 3 years ago

same for me

Chakroun-Anas commented 1 year ago

Should be fixed in version 2.6.2 and above, can you check again please @jrayga @glaucopater @iamkabirmalik @ImanMahmoudinasab and give me your feedback ? Thx

15200596294git commented 4 months ago

Has it been resolved yet?