facebookarchive / stetho

Stetho is a debug bridge for Android applications, enabling the powerful Chrome Developer Tools and much more.
http://facebook.github.io/stetho/
MIT License
12.66k stars 1.13k forks source link

Problems of ChromeDevtoolsServer: Method not implemented #586

Closed iBotasky closed 6 years ago

iBotasky commented 6 years ago

@zpao Hello, I got a problem Here is my gradle's setting

buildTypes {
        release {
            minifyEnabled false
            shrinkResources false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug{
            minifyEnabled false
            shrinkResources false
        }
    }

I'm closing the proguard and there is not a relese version of app. But i can see any db or sp files in the Stetho. image

And there is the log of the logs

01-21 00:53:43.239 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: Method not implemented: Not implemented: Debugger.setAsyncCallStackDepth
01-21 00:53:43.254 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: Method not implemented: Not implemented: Debugger.skipStackFrames
01-21 00:53:43.266 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: Method not implemented: Not implemented: Runtime.enable
01-21 00:53:43.321 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: Method not implemented: Not implemented: Worker.enable
01-21 00:53:43.332 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: Method not implemented: Not implemented: Timeline.enable
01-21 00:53:43.390 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: Method not implemented: Not implemented: IndexedDB.enable
01-21 00:53:43.402 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: Method not implemented: Not implemented: Page.getNavigationHistory
01-21 00:53:43.412 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: Method not implemented: Not implemented: Worker.setAutoconnectToWorkers
01-21 00:53:43.474 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: Method not implemented: Not implemented: IndexedDB.requestDatabaseNames
01-21 00:53:43.484 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: Method not implemented: Not implemented: Page.getNavigationHistory
01-21 00:53:55.625 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: Method not implemented: Not implemented: ApplicationCache.enable
01-21 00:53:55.635 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: Method not implemented: Not implemented: ApplicationCache.getFramesWithManifests
01-21 00:58:59.963 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: Method not implemented: Not implemented: IndexedDB.requestDatabaseNames
01-21 00:59:05.274 4262-4330/com.sirius.cybird D/ChromeDevtoolsServer: onClose: reason=1011 EOF while reading
01-21 00:59:05.274 4262-4330/com.sirius.cybird I/ResponseBodyFileManager: Cleaned up temporary network files.
iBotasky commented 6 years ago

The version of Stetho is 1.5.0

jasta commented 6 years ago

Hmm, method not implemented doesn't look like the real culprit. The onClose EOF while reading seems more interesting. Is it possible your app is crashing or restarting itself after you are attached?

iBotasky commented 6 years ago

@jasta There is not crashing of my app, it still running on the emulator. Is this may be caurse by the emulator?

jasta commented 6 years ago

Hmm no that shouldn't be the issue. We might be barking up the wrong tree here tho. Do other parts of Stetho work properly, like the elements tree and/or the dumpapp command line tool? If yes, I'm wondering if the issue is somehow that simply no databases were detected (if you do things in a non standard way you have to do a little bit of configuring to help stetho find the DB files).

iBotasky commented 6 years ago

@jasta Sorry about that. I use ObjectBox for my DB, and the ObjectBox team say that Stetho was not support for ObjectBox's file(The DB is mdb file). And I try to write a value with SP, and there I found the value in the Chrome devtool with Stetho. image And the logcat still have the No implement's log: image I think the No implement is not a big problem. Because the other parts of Stetho is work properly. Sorry for the troubles.