nativescript-cli icon indicating copy to clipboard operation
nativescript-cli copied to clipboard

Devtools unstable on iOS

Open nikoTM opened this issue 4 years ago • 1 comments

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.

nikoTM avatar Nov 06 '20 16:11 nikoTM

  1. Reinstalled xcode CLI tools
  2. Reinstalled Nativescript
  3. Reinstalled Ruby and updated gems

Now I can see Console and Sources in DevTools, network and elements are still missing...But apparently it works for some people just fine, so possibly an environment issue. If anyone has a workaround or ideas what might be at fault please let me know.

nikoTM avatar Feb 23 '21 19:02 nikoTM