NativeScript / NativeScript/nativescript-cli
Open Chrome when using Chrome DevTools for debugging
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
Currently tns debug android and tns debug ios --chrome prepare the project, run it on specified device and prints a URL which should be opened in Chrome browser.
Instead the commands should open Chrome directly and load a specified URL.
The current implementation prints the URL as it is unable to open it in Chrome. However, the changes applied in this PR allow us to generate a URL to https://chrome-devtools-frontend.appspot.com/. This URL can be safely opened in Chrome directly from CLI.
Things to consider during implementation:
- For testability, we should have an easy way to print the URL and do not open Chrome. This will be useful in CI.
- Visual Studio Code Extension does not need to open Chrome, so ensure
--no-clientoption is respected. - Chrome executable has different names on each OS. Also the
Canaryrelease has another name. Ensure the users have an easy way to set the name, specific to their system. - During debug operation, CLI LiveSyncs changes on device. This may produce different URL (the port may change), so ensure we open the URL again. In case the port is not changed, just inform the user to reconnect DevTools in the already opened tab.
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 rastreando os pontos de entrada tns debug android e tns debug ios --chrome e, em seguida, revise o PR 3071 para ver como a URL do DevTools é gerada. Considera-se concluído quando o Chrome abre a URL, o CI consegue imprimi-la sem iniciar o Chrome, --no-client continua sendo respeitado, os nomes dos executáveis podem ser configurados e as alterações na URL do LiveSync são tratadas.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- android, ios, javascript
- Domínio
- cli, devtools, mobile-dev
- Tipo de issue
- Funcionalidade
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100