NativeScript / NativeScript/nativescript-cli
Attaching Debug from Chrome kills app on iOS
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
NS 8.0.7
Xcode 12.4
Every time I run ns debug ios the app compiles fine and runs on the simulator.
If I open Chrome to start the debugging process with devtools://devtools/bundled/inspector.html?ws=localhost:41000 it immediately crashes the app.
Eventually after 4 or 5 times of restarting the app on the simulator the debug will connect. Error is
(Asterix added to hide Bundle ID)
Successfully synced application com..**** on device 4023F1A9-E743-4AD5-9D6D-4A22C0C0A6EE.
CONSOLE LOG: Loading inspector modules...
CONSOLE LOG: Finished loading inspector modules.
Frontend client connected.
NativeScript debugger has opened inspector socket on port 18185 for com..*****.
Backend socket created.
Backend socket closed!
Frontend socket closed!
CONSOLE LOG: Loading inspector modules...
CONSOLE LOG: Finished loading inspector modules.
Frontend client connected.
NativeScript debugger has opened inspector socket on port 18186 for com...
Backend socket created.
Backend socket closed!
Frontend socket closed!
I've removed the platforms folder and rebuilt but the problem persists.
ns doctor shows
✔ Component @nativescript/core has 8.0.7 version and is up to date.
✔ Component @nativescript/ios has 8.0.0 version and is up to date.
Is this correct.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with ns debug ios on the iOS simulator, then attach Chrome using the reported devtools URL and compare the socket-close logs. A fix would leave the app running and let the debugger connect reliably; verify with the reported NativeScript, iOS, and Xcode versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- cli, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100