How can I access some variables inside
$(document).ready(function(){ var foo=0; var bar = 3; });
from Google chrome console? If I
Actually there is a hackish way around it. You should probably not use it. Set a Breakpoint. That being said, here's the code:
$(document).ready( readyClosure = function(access){ var x = 5; return eval(access); } ); readyClosure('x'); // returns 5