NativeScript / NativeScript/nativescript-cli
Unable to wait for more than ~20 seconds on application start with --debug-brk
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
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
tns create myApp --jstns debug ios --debug-brk(on a real iOS device)- open the debug URL in chrome
- 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the tns debug ios --debug-brk entry point and inspect the ios-device-lib handling of waitForDebugger, comparing it with the iOS simulator application manager behavior. Reproduce on a real iOS device and verify that attaching a native debugger keeps the app and Chrome debugger connected beyond 30 seconds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- cli, devtools, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100