NativeScript / NativeScript/nx

Can't debug app via Chrome - Crashes the app

Open
#36 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
68
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Can't debug app via Chrome.

Create a new app with
npx nx g @nativescript/nx:app test --groupByName

run:
npx nx run test-nativescript:ios

App starts in iOS emulator -works fine
Try to connect from Chrome via:
devtools://devtools/bundled/inspector.html?ws=localhost:41000

App then crashes and Chrome says "Debugging connection was closed"
Terminal shows:
Backend socket closed!
Frontend socket closed!

Using
"webpack": "^5.40.0" (also latest tried 5.43.0)
"@nativescript/webpack": "5.0.0"

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

Reproduce the issue with npx nx g @nativescript/nx:app test --groupByName, npx nx run test-nativescript:ios, and the provided Chrome DevTools URL, using the reported webpack versions. Trace the debugging connection after the app starts and compare the app crash with the Backend socket closed! and Frontend socket closed! messages; done means Chrome remains connected and the iOS app does not crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript, webpack
Domain
developer-experience, 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.