NativeScript / NativeScript/nativescript-cli
No logs after application restart
未关闭
还没有人认领这个 Issue。
bug
os: android
severity: medium
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
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.1.0
- Cross-platform modules: 5.1.0
- Android Runtime: 5.1.0
- iOS Runtime: 5.1.0
Describe the bug
The CLI does not output application logs (e.g. console.log, HMR logs) after application restart.
To Reproduce
tns run <platform> --hmr
restart (close/open) the application while the tns process is running
Expected behavior
The CLI outputs application logs (e.g. console.log, HMR logs).
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用 tns run <platform> --hmr 重现问题,然后在 tns 进程仍处于活动状态时关闭并重新打开应用程序。跟踪 CLI 在重启过程中对应用程序日志的处理,并验证之后 console.log 和 HMR 日志仍会继续出现。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100