Component
within a Controller
that will be encapsulated within a Router
, and still has a schema of Model
, Mixins
, Helpers
, this when there is no component, or addon, or mixin talking to another component, addon, mixin ( welcome to the modern javascript ) ... Sometimes it gets very difficult to debug the code, know the path of the javascript route, the scope in which such function or method was called, using console.debug();
I can get the current scope of the function, but it is difficult to know where that function was called. Is there any method or way in javascript to find out all the way the function has traveled until it reaches a certain point?
Exemplifying:
function A(){
B();
}
function B(){
a.teste();
}
function C(){
/*Descobrir como o javascript chegou até aqui*/
console.log("Hellor Weird World!");
console.debug();
}
var a = {
teste: function(){
C();
}
}
A();