In case of Google Chrome you will know the
debugger; statement. This also works in your console.
you can paste the whole code into the console and add a
debugger; statement into your anonymous function.
Google will still stop their and you can debug and inspect all available variables.