vscode-titanium
vscode-titanium copied to clipboard
Improve error thrown when starting remotedebug-ios-webkit-adapter server
Describe the Bug
Currently when we start the adapter that handles the WebKit -> CDP translation for us we just throw the error we received https://github.com/appcelerator/vscode-appcelerator-titanium/blob/d9c47ba782fd3bb6dfcf63fc00aa8852ccdc19c9/src/debugger/titaniumDebugAdapter.ts#L115-L121
This is pretty pointless as nothing of use gets surfaced to the user as we can't pull the logs of the server from what I can tell and we just show Error processing "launch": {_stack }
We might need to come up with a guide that helps people fix this error pointing to common problems, and how to debug the issue.
For me the issue was I had to reinstall libimobiledevice as it was failing to load libusbmuxd.
remotedebug adapter.spawnProcess, path=/usr/local/bin/ios_webkit_debug_proxy +1ms
remotedebug adapter.spawnProcess.stderr, data=dyld: Library not loaded: /usr/local/opt/usbmuxd/lib/libusbmuxd.4.dylib
remotedebug Referenced from: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib
remotedebug Reason: image not found
remotedebug +3ms
remotedebug adapter.spawnProcess.close, code=null +1ms