Skip to content

Instantly share code, notes, and snippets.

@karenpeng
Last active August 29, 2015 14:14
Show Gist options
  • Save karenpeng/cb8e3be06140b38571e5 to your computer and use it in GitHub Desktop.
Save karenpeng/cb8e3be06140b38571e5 to your computer and use it in GitHub Desktop.
foo();
var test;
function foo(){
function bar() {
test = console.trace();
}
bar();
}
console.log(test);
//it logs out the trace while test to be undefined
//is there a way to catch things from console.trace()?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment