NativeScript / NativeScript/nativescript-cli

Devtools unstable on iOS

未关闭
#5,437 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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 @next as well)
  • Cross-platform modules: 7.0.13
  • iOS Runtime: 7.0.4 (tried 7.0.3 and 7.0.1 as 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

  1. ns create devtools-test --ng --blank
  2. Add a http call to app.component.ts via Angular's HttpClient or NativeScript's Http.
  3. ns debug ios (--inspector if testing inspector)
  4. 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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。