Lupe Maydana
Incongruencia con Patas. Arte y tecnologia. Libertad! Python y JS <3
A lot of the material derives from:
👋 Presentate en el chat 💬
Compartir contigo el mindset de debugging y algunas herraminetas para debuggear JavaScript
$ node stacktrace.js
/Users/harrymoreno/stacktrace.js:9
notDefined();
^
ReferenceError: notDefined is not defined
at c (/Users/harrymoreno/stacktrace.js:9:3)
at b (/Users/harrymoreno/stacktrace.js:6:3)
at a (/Users/harrymoreno/stacktrace.js:3:3)
at Object.<anonymous> (/Users/harrymoreno/stacktrace.js:11:1)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Function.Module.runMain (module.js:575:10)
$ node stacktrace.js
/Users/harrymoreno/stacktrace.js:9
notDefined();
^
ReferenceError: notDefined is not defined
at c (/Users/harrymoreno/stacktrace.js:9:3)
at b (/Users/harrymoreno/stacktrace.js:6:3)
at a (/Users/harrymoreno/stacktrace.js:3:3)
at Object.<anonymous> (/Users/harrymoreno/stacktrace.js:11:1)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Function.Module.runMain (module.js:575:10)
Ignora los errores que están en archivos que no nos pertenecen
$ node stacktrace.js
/Users/harrymoreno/stacktrace.js:9
notDefined();
^
ReferenceError: notDefined is not defined
at c (/Users/harrymoreno/stacktrace.js:9:3)
at b (/Users/harrymoreno/stacktrace.js:6:3)
at a (/Users/harrymoreno/stacktrace.js:3:3)
at Object.<anonymous> (/Users/harrymoreno/stacktrace.js:11:1)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Function.Module.runMain (module.js:575:10)
Text
$ node stacktrace.js
/Users/harrymoreno/stacktrace.js:9
notDefined();
^
ReferenceError: notDefined is not defined
at c (/Users/harrymoreno/stacktrace.js:9:3)
at b (/Users/harrymoreno/stacktrace.js:6:3)
at a (/Users/harrymoreno/stacktrace.js:3:3)
at Object.<anonymous> (/Users/harrymoreno/stacktrace.js:11:1)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Function.Module.runMain (module.js:575:10)
Text
Tipo de error
$ node stacktrace.js
/Users/harrymoreno/stacktrace.js:9
notDefined();
^
ReferenceError: notDefined is not defined
at c (/Users/harrymoreno/stacktrace.js:9:3)
at b (/Users/harrymoreno/stacktrace.js:6:3)
at a (/Users/harrymoreno/stacktrace.js:3:3)
at Object.<anonymous> (/Users/harrymoreno/stacktrace.js:11:1)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Function.Module.runMain (module.js:575:10)
Text
Stack Frame punto de entrada
// stacktrace.js
a = () => {
b();
}
b = () => {
c();
}
c = () => {
notDefined();
}
a();
// stacktrace.js
a = () => {
b();
}
b = () => {
c();
}
c = () => {
notDefined();
}
a();
Has las preguntas correctas.
Lee el stacktrace.
Realiza una lista de que debería pasar.
Documenta como resolviste el error!
@luucamay_
By Lupe Maydana