Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error thrown when starting remotedebug-ios-webkit-adapter server #161

Open
ewanharris opened this issue Nov 25, 2019 · 0 comments
Open
Labels
bug Something isn't working

Comments

@ewanharris
Copy link
Collaborator

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
@ewanharris ewanharris added the bug Something isn't working label Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant