Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

353
Vistas
How to see the number of function calls and if possible the function names that are in the stack real-time

Is there a way in real-time to see the number of function calls that are in the stack before or regardless of whether the stack size might be exceeded? Could it be shown like this:

console.log("Function: " + funcName + ", nbr of calls in the stack: " + funcCount);
// Function: foo, 22
// Function: bar, 300
// etc...

Functions are called like this:

var mod = function () { 
   var obj = {
        foo: (fn) => "My name is: " + fn, 
        bar: (fn) => "My name is: " + fn
    };
    console.log(((fn) => obj[fn](fn))("foo"));
    console.log(((fn) => obj[fn](fn))("bar"));
}; 
mod();
// My name is: foo
// My name is: bar

So the function when running knows its name since it's passed in.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda