Repository: RemoteDebug/remotedebug-ios-webkit-adapter

Issue #69: Memory Tab
Created: 2017-07-31T10:19:21Z
Is it possible to take memory snapshots? It doesn't seem to work.

Duplicate issue #133: 'Profiler' domain was not found
Created: 2019-02-20T16:32:53Z
Environment:
Ubuntu 16.04
iPad iOS Version: 12.1.1 or iPhone iOS Version: 12.1.2
Desktop Chrome Version: 72.0.3626.81
Problem
I followed all the steps to set this up on Linux (building versions of libimobiledevice etc). It works successfully about half of the time. The other half of the time I click on the link in Chrome Dev Tools to inspect a page on the iOS device and the inspector window opens, the Remote Target link disappears and the web socket connection closes. When running DEBUG=remotedebug remotedebug-ios-webkit-adapter I get:
remotedebug sendToTools.{"error":{"code":-32601,"message":"'Profiler' domain was not found","data":[{"code":-32601,"message":"'Profiler' domain was not found"}]},"id":5} +708ms
The related debug output is:
remotedebug adapterCollection.forwardTo, url=/ios_7591b2772d436bb0e621f993c11dc7e961f5f61c/ws://127.0.0.1:9323/devtools/page/1 +1ms
remotedebug adapterCollection.getWebSocketId, url=/ios_7591b2772d436bb0e621f993c11dc7e961f5f61c/ws://127.0.0.1:9323/devtools/page/1 +0ms
remotedebug adapter.forwardTo, targetId=ws://127.0.0.1:9323/devtools/page/1 +0ms
remotedebug sendToTarget.{"id":26,"method":"Page.setTouchEmulationEnabled","params":{"enabled":true,"configuration":"mobile"}} +1ms
remotedebug adapterCollection.forwardTo, url=/ios_7591b2772d436bb0e621f993c11dc7e961f5f61c/ws://127.0.0.1:9323/devtools/page/1 +0ms
remotedebug adapterCollection.getWebSocketId, url=/ios_7591b2772d436bb0e621f993c11dc7e961f5f61c/ws://127.0.0.1:9323/devtools/page/1 +1ms
remotedebug adapter.forwardTo, targetId=ws://127.0.0.1:9323/devtools/page/1 +0ms
remotedebug sendToTools.{"id":27,"result":{}} +0ms
remotedebug adapterCollection.forwardTo, url=/ios_7591b2772d436bb0e621f993c11dc7e961f5f61c/ws://127.0.0.1:9323/devtools/page/1 +1ms
remotedebug adapterCollection.getWebSocketId, url=/ios_7591b2772d436bb0e621f993c11dc7e961f5f61c/ws://127.0.0.1:9323/devtools/page/1 +0ms
remotedebug adapter.forwardTo, targetId=ws://127.0.0.1:9323/devtools/page/1 +0ms
remotedebug sendToTarget.{"id":28,"method":"Page.setTouchEmulationEnabled","params":{"enabled":false,"configuration":"desktop"}} +0ms
remotedebug adapterCollection.forwardTo, url=/ios_7591b2772d436bb0e621f993c11dc7e961f5f61c/ws://127.0.0.1:9323/devtools/page/1 +1ms
remotedebug adapterCollection.getWebSocketId, url=/ios_7591b2772d436bb0e621f993c11dc7e961f5f61c/ws://127.0.0.1:9323/devtools/page/1 +0ms
remotedebug adapter.forwardTo, targetId=ws://127.0.0.1:9323/devtools/page/1 +0ms
remotedebug sendToTarget.{"id":29,"method":"Runtime.runIfWaitingForDebugger"} +0ms
remotedebug sendToTools.{"result":{"frameTree":{"frame":{"id":"0.1","loaderId":"0.8","url":"http://dscott-workstation:81/#!/stage","mimeType":"text/html","securityOrigin":"http://dscott-workstation:81"},"resources":[{"url":"http://dscott-workstation:81/service/streams/16/frame?width=414&height=234&now=1550679278556","type":"Image","mimeType":"image/jpeg"},{"url":"http://dscott-workstation:81/service/streams/3/frame?width=414&height=234&now=1550679279209","type":"Image","mimeType":"image/jpeg"},{"url":"http://dscott-workstation:81/css/built-no-cache.css","type":"Stylesheet","mimeType":"text/css","sourceMapURL":"data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmNzcyIsImdsb2JhbHMuY3NzIiwic2VydmljZXMvQXV0b2NvbXBsZXRlUmVwYWlyLmNzcyIsImNvbXBvbmVudHMvYWN0aXZhdGlvbi9hY3RpdmF0aW9uLmNzcyIsImNvbXBvbmVudHMvYmFnL2JhZy5jc3MiLCJjb21wb25lbnRzL2JhZy9iYWdDYW1lcmFzLmNzcyIsImNvbXBvbmVudHMvYmFnL2NhbWVyYUdyb3VwLmNzcyIsImNvbXBvbmVudHMvY2FtZXJhR3JvdXBzL2NhbWVyYUdyb3VwQ29uZmlnLmNzcyIsImNvbXBvbmVudHMvY2FtZXJhR3JvdXBzL2NhbWVyYUdyb3VwVmlldy5jc3MiLCJjb21wb25lbnRzL2NoaXBzL ... cut for brevity ... tdGFibGUgdGJvZHkubWQtYm9keSA+IHRyLm1kLXJvdy5oaWRlYWJsZS1yb3cuaGlkZW1lIHRkIG1kLWNoZWNrYm94IC5tZC1pY29uLFxudGFibGUub3JjaGlkLXRhYmxlIHRhYmxlLm1kLXRhYmxlIHRmb290Lm1kLWZvb3QgPiB0ci5tZC1yb3cuaGlkZWFibGUtcm93LmhpZGVtZSB0ZCBtZC1jaGVja2JveCAubWQtaWNvbiB7XG4gIHdpZHRoOiAwcHg7XG4gIGhlaWdodDogMHB4O1xufVxudGFibGUub3JjaGlkLXRhYmxlIHRib2R5Lm1kLWJvZHkgPiB0ci5tZC1yb3cuaGlkZWFibGUtcm93LmhpZGVtZSB0ZCBtZC1jaGVja2JveCAubWQtY29udGFpbmVyLFxudGFibGUub3JjaGlkLXRhYmxlIHRhYmxlLm1kLXRhYmxlIHRmb290Lm1kLWZvb3QgPiB0ci5tZC1yb3cuaGlkZWFibGUtcm93LmhpZGVtZSB0ZCBtZC1jaGVja2JveCAubWQtY29udGFpbmVyIHtcbiAgd2lkdGg6IDBweDtcbiAgaGVpZ2h0OiAwcHg7XG59XG4iXX0="},{"url":"http://dscott-workstation:81/images/turtle-land.svg","type":"Image","mimeType":"image/svg+xml"},{"url":"http://dscott-workstation:81/service/streams/18/frame?width=414&height=234&now=1550679279208","type":"Image","mimeType":"image/jpeg"},{"url":"http://dscott-workstation:81/service/low-bandwidth/streams/5d8e53f5-9519-48d1-94e2-f26c7587d7b2/frame?1550679278447","type":"Image","mimeType":"application/json","failed":true},{"url":"http://dscott-workstation:81/images/dark_logo.svg","type":"Image","mimeType":"image/svg+xml"},{"url":"http://dscott-workstation:81/images/header_logo.svg","type":"Image","mimeType":"image/svg+xml"},{"url":"http://dscott-workstation:81/fonts-no-cache.css","type":"Stylesheet","mimeType":"text/css"},{"url":"http://dscott-workstation:81/service/streams/24/frame?width=414&height=234&now=1550679278852","type":"Image","mimeType":"image/jpeg"},{"url":"http://dscott-workstation:81/images/toggle-off.svg","type":"Image","mimeType":"image/svg+xml"},{"url":"http://dscott-workstation:81/service/streams/13/frame?width=414&height=234&now=1550679278565","type":"Image","mimeType":"image/jpeg"},{"url":"http://dscott-workstation:81/images/toggle-on.svg","type":"Image","mimeType":"image/svg+xml"},{"url":"http://dscott-workstation:81/fonts/actor-v6-latin-regular.woff2","type":"Font","mimeType":"application/font-woff2"},{"url":"http://dscott-workstation:81/service/streams/9/frame?width=414&height=234&now=1550679278848","type":"Image","mimeType":"image/jpeg"},{"url":"http://dscott-workstation:81/images/playerContainer/resize-south.svg","type":"Image","mimeType":"image/svg+xml"},{"url":"http://dscott-workstation:81/service/streams/5/frame?width=414&height=234&now=1550679278851","type":"Image","mimeType":"image/jpeg"},{"url":"http://dscott-workstation:81/images/playerContainer/resize-east.svg","type":"Image","mimeType":"image/svg+xml"},{"url":"http://dscott-workstation:81/js/vendor-no-cache.js","type":"Script","mimeType":"application/javascript"},{"url":"http://dscott-workstation:81/fonts/fontawesome-webfont.woff2?v=4.7.0","type":"Font","mimeType":"application/font-woff2"},{"url":"http://dscott-workstation:81/css/vendor-no-cache.css","type":"Stylesheet","mimeType":"text/css"},{"url":"http://dscott-workstation:81/images/menu-toggle.svg","type":"Image","mimeType":"image/svg+xml"},{"url":"http://dscott-workstation:81/","type":"Document","mimeType":"text/html"},{"url":"http://dscott-workstation:81/service/streams/2/frame?width=414&height=234&now=1550679278570","type":"Image","mimeType":"image/jpeg"},{"url":"http://dscott-workstation:81/images/playerContainer/resize-southeast.svg","type":"Image","mimeType":"image/svg+xml"},{"url":"http://dscott-workstation:81/js/built-no-cache.js","type":"Script","mimeType":"application/javascript"}]}},"id":4} +28ms
remotedebug sendToTools.{"error":{"code":-32601,"message":"'Profiler' domain was not found","data":[{"code":-32601,"message":"'Profiler' domain was not found"}]},"id":5} +708ms
remotedebug sendToTools.{"result":{},"id":6} +0ms
remotedebug sendToTools.{"method":"Runtime.executionContextCreated","params":{"context":{"id":16,"isPageContext":true,"name":"","origin":"","auxData":{"frameId":"0.1","isDefault":true}}}} +1ms
remotedebug sendToTools.{"method":"Runtime.executionContextCreated","params":{"context":{"id":16,"isPageContext":false,"name":"http://dscott-workstation:81","origin":"http://dscott-workstation:81","auxData":{"frameId":"0.1","isDefault":true}}}} +0ms
remotedebug sendToTools.{"method":"Debugger.scriptParsed","params":{"scriptId":"396","url":"","startLine":0,"startColumn":0,"endLine":3,"endColumn":2}} +5ms


Any ideas of what could be causing this and/or how I can provide more information to debug this issue? I'm happy to provide a PR to fix this if someone can point me in the direction of how to solve it.
Thanks.

Closing comment (2021-03-29T04:20:11Z): Duplicate of #69