Skip to content

fix: debug android --start should allow to debug #4774

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
Jun 26, 2019

Conversation

rosen-vladimirov
Copy link
Contributor

tns debug android --start should allow you to debug. However, immediately after opening the debug socket we set the cleanupService to clean the forwarded port once CLI process exits. As we have not set the cleanupService in long living mode, CLI calls injector.dispose and this cleans the debug socket.
To handle this, just set the cleanupService in long living mode.

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

`tns debug android --start` should allow you to debug. However, immediately after opening the debug socket we set the cleanupService to clean the forwarded port once CLI process exits. As we have not set the cleanupService in long living mode, CLI calls injector.dispose and this cleans the debug socket.
To handle this, just set the cleanupService in long living mode.
@rosen-vladimirov
Copy link
Contributor Author

test cli-debug

@rosen-vladimirov rosen-vladimirov merged commit cd6a94a into master Jun 26, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-debug-start branch June 26, 2019 16:21
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.

2 participants