DevTools Feature Request - console.scope()
Sometimes I just want to see all (or many) of the variables inside of the function, and it can be a bit of work to copy all of the variables into the console.log() call when you know that you are just going to delete the line afterwards anyway.
It would be great to have a console function that handles this. It would be called console.scope. When you call console.scope()
it would act similarly to console.trace()
, except instead of seeing the call stack in the console, you would see the same thing that you see in the 'Scope Variables' panel when inside a breakpoint in the Sources Panel (see images).
I have also opened a thread about this on the devtools mailing list.