Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Keep Chrome Tools open after app stops #55

Closed
kanetik opened this issue Feb 20, 2015 · 5 comments
Closed

Keep Chrome Tools open after app stops #55

kanetik opened this issue Feb 20, 2015 · 5 comments

Comments

@kanetik
Copy link

kanetik commented Feb 20, 2015

Hoping there's a way to do this - after a JSON Mapping issue (in my case, using GSON w/ Retrofit), the app force-closes, and immediately the inspection window closes with it. I cannot, therefore, see what the response was, and see what unexpected JSON came back. It would be a huge win to have that ability!

@jasta
Copy link
Contributor

jasta commented Feb 20, 2015

You might be able to find it by looking at adb shell run-as com.yourpackage ls files. It writes files like network-response-body-* which the system normally cleans up when it doesn't force close. It will eventually delete them if you inspect again tho.

Unfortunately keeping the window open isn't possible AFAICT because once the socket disconnects the window automatically closes. The only way I can think of to fix that would be to use a proxy server of some kind so that the connection to the DevTools UI wasn't severed (just the connect to the proxy).

@jasta
Copy link
Contributor

jasta commented Mar 3, 2015

We've been considering our own devtools client recorder which automagically creates HAR files and such so that it can be used to instrument runs of the app that are crashing or where problems are happening very early during initialization. This might be a great compromise for your issue as well. Thoughts?

@ghost
Copy link

ghost commented Aug 5, 2015

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

@jasta
Copy link
Contributor

jasta commented Aug 10, 2015

Chrome made this change :)

@jasta jasta closed this as completed Aug 10, 2015
@kanetik
Copy link
Author

kanetik commented Aug 11, 2015

@jasta care to elaborate?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants