DevTools: console access for response json
Reported by
rro...@zenefits.com,
Jan 23 2017
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36 Steps to reproduce the problem: 1. 2. 3. What is the expected behavior? What went wrong? would be cool to do a `== $0` style console-accessible variable for network responses, esp. json. can clarify further if needed. Did this work before? N/A Chrome version: 55.0.2883.95 Channel: stable OS Version: OS X 10.11.6 Flash Version: Shockwave Flash 24.0 r0
,
Jan 30 2017
,
Jan 30 2017
Thank you for the request. Further clarification about your use case and how your current workflow is, would be welcome. $0, currently used for the selected element, isn't super intuitive to me. Logged console objects have 'save as global variable' on right click, but for copying json data, wouldn't right click > copy/paste into the console do the same? Please let us know about how your workflow might improve.
,
Jan 30 2017
This would be a cool feature, however there's already a decent workaround of: 1) Open network response 2) Select all -> copy 3) Paste into console + assign to variable. The process is not very elegant, but this is already a corner case. This would also be a bit tricky to implement since Network can only open network requests on selection and we only ask blink for the resource data if the user asks for it and to top it all off, it is possible for blink to purge the network request data even if devtools is open, and we'd have a hard time showing this happened if a user was trying to access the data with a $0 like command. Thank you very much for the suggestion, but I think it might be a more useful to figure out a way to handle this without requiring console. Thanks again! |
||||
►
Sign in to add a comment |
||||
Comment 1 by nyerramilli@chromium.org
, Jan 24 2017Status: Untriaged (was: Unconfirmed)