Undefined variable when debugging on Webstorm strange behavior


I don’t know if anyone has encounter this type of behavior, I was debugging on webstorm a function which I just added a new parameter, but then when invoking the function I was getting undefined on this parameter, weird thing is that when calling it the parameter was defined, I’m attaching some screenshot so you can see what I’m talking about, also that metorInstall.server reference on the debugger I haven’t seen it before, anyone know what is it about?

You can see the variable “service” is defined, it’s equal to ‘M’

And now when invoking it, it’s undefined??? what just happened???

I have no idea if it’s meteor’s or Webstorm fault, so any help would be much appreciated!

Edited: I forgot to mention I’m on Meteor 1.5.1 and Webstorm 2017.2

Thank you!


It shows even more weird behavior that clearly has something to do with the version 1.5 update.

Please check my comment here https://github.com/meteor/meteor/issues/8902#issuecomment-316130899 as I have posted a gif file there as well illustrate the weird jumps when tracing the code (and using CONTINUE)


PS: @mexin and I work on the same project