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

Unable to wait for more than ~20 seconds on application start with --debug-brk #4307

Open
DimitarTachev opened this issue Jan 21, 2019 · 1 comment

Comments

@DimitarTachev
Copy link
Contributor

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.2.0 (the current next)
  • Cross-platform modules: 5.1.0
  • iOS Runtime: 5.1.1

To Reproduce

  1. tns create myApp --js
  2. tns debug ios --debug-brk (on a real iOS device)
  3. open the debug URL in chrome
  4. wait on the first line for more than 30 seconds (the app will be killed and the debugger disconnected)

Expected behavior
You should be able to wait there as much as you want

Additional context
The app is killed by iOS. We've solved this issue for simulators by attaching an lldb debugger to the application (check out the iOS simulators application manager). We should implement a similar solution in the ios-device-lib - we could use some gdb options in order to attach a native debugger to the app when waitForDebugger is passed.

@DimitarTachev
Copy link
Contributor Author

DimitarTachev commented Apr 1, 2019

It seems that the iOS app is not terminated on iOS 11+ which means that we could close this issue as soon as we have iOS 11 as the minimum iOS version.

We should also check this behavior on Simulators and drop the lldb related code from the CLI if it's redundant for iOS 11+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants