javascript show stack trace code example
Example: javascript show stack trace
try {
throw "Could not parse that text!";
} catch(e) {
console.log(e.stack); //log the stack trace to console
}
try {
throw "Could not parse that text!";
} catch(e) {
console.log(e.stack); //log the stack trace to console
}