NativeScript / NativeScript/nativescript-cli

Devtools unstable on iOS

Open
#5,437 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the minimal project from the reproduction steps, using app.component.ts and the ns debug ios entry point. Compare Chrome DevTools and Safari inspector behavior for network, elements, and console output, then verify the expected tabs work without crashing the application.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, ios, javascript
Domain
cli, devtools, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.