NativeScript / NativeScript/nativescript-cli
Devtools unstable on iOS
还没有人认领这个 Issue。
- 主要语言
- 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: 7.0.11 (tried
@nextas well) - Cross-platform modules:
7.0.13 - iOS Runtime:
7.0.4(tried7.0.3and7.0.1as well) - XCode Version:
12.1 - Simulator iOS Version:
14.1
Describe the bug
Chrome DevTools do not show any network connection or elements.
Safari's inspector does not even show console.
To Reproduce
ns create devtools-test --ng --blank- Add a http call to
app.component.tsvia Angular'sHttpClientor NativeScript'sHttp. ns debug ios(--inspectorif testing inspector)- Open DevTools link provided by cli (or switch to inspector)
Expected behavior
Expect to see http calls on the network tab, layout on elements tab, and console output on console tab.
Additional context
On a real project, application crashes when DevTools are open opened. Once this issue is reproduced for a minimal project, I can provide more information regarding that if the issue persists.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从复现步骤中的最小项目开始,使用 app.component.ts 和 ns debug ios 入口点。比较 Chrome DevTools 和 Safari inspector 在网络、元素和控制台输出方面的行为,然后验证预期的选项卡能够正常工作且不会导致应用程序崩溃。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, ios, javascript
- 领域
- cli, devtools, mobile-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100