NativeScript / NativeScript/nativescript-cli
Unable to wait for more than ~20 seconds on application start with --debug-brk
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- JavaScript
- Estrelas
- 1.1k
- Forks
- 204
- Merge médio
- 1d 9h
- PRs com merge (30d)
- 8
Descrição
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.
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece pelo ponto de entrada tns debug ios --debug-brk e inspecione o tratamento de waitForDebugger em ios-device-lib, comparando-o com o comportamento do gerenciador de aplicativos do simulador do iOS. Reproduza isso em um dispositivo iOS real e verifique se anexar um depurador nativo mantém o aplicativo e o depurador do Chrome conectados por mais de 30 segundos.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- ios, javascript
- Domínio
- cli, devtools, mobile-dev
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100