Skip to content

Fix tns debug ios --justlaunch #2758

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

Merged
merged 1 commit into from
May 2, 2017

Conversation

rosen-vladimirov
Copy link
Contributor

When --justlaunch flag is passed, CLI automatically disposes the ios-device-lib after execution of the command. However this closes all opened device sockets and breaks the debug command.
So whenever you try tns debug ios --justlaunch [--chrome], the debug application (NativeScript Inspector) or Chrome DevTools is unable to connect to device socket and fails with error.
Fix this by keeping the ios-device-lib alive whenever we try debug for ios. This way the debug application will be able to connect to the device.
NOTE: tns debug ios --justlaunch [--chrome] cannot release the terminal as it has to keep the ios-device-lib alive.

When `--justlaunch` flag is passed, CLI automatically disposes the `ios-device-lib` after execution of the command. However this closes all opened device sockets and breaks the debug command.
So whenever you try `tns debug ios --justlaunch [--chrome]`, the debug application (NativeScript Inspector) or Chrome DevTools is unable to connect to device socket and fails with error.
Fix this by keeping the `ios-device-lib` alive whenever we try debug for ios. This way the debug application will be able to connect to the device.
NOTE: `tns debug ios --justlaunch [--chrome]` cannot release the terminal as it has to keep the ios-device-lib alive.
@dtopuzov dtopuzov merged commit b2301d1 into release May 2, 2017
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-debug-ios-justlaunch branch May 10, 2017 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants