How to copy an object from console log in Chrome Webkit Inspector?
Question
There is a console.log from Chrome webkit inspector. How to copy it directly?
Answer
- Right-click an object in Chrome’s console and select
Store as Global Variablefrom the context menu. It will return something like temp1 as the variable name. - Chrome also has a
copy()method, socopy(temp1)in the console should copy that object to your clipboard.
![]()
Reference
This is the end of post