Let's say I have a function foo
, and I set a break point in console.log(c)
, and print a
and b
in chrome dev tool console. I can get a
but I can not get b
. I don't know why.
foo();
function foo(){
var a = 2;
var b = 3;
bar(4);
function bar(c) {
console.log(a);
// console.log(b);
console.log(c);
}
}