Skip to content

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