NativeScript / NativeScript/nativescript-cli
Attaching Debug from Chrome kills app on iOS
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 1.1k
- 分支
- 204
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 8
描述
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.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先在 iOS 模擬器上使用 ns debug ios 重現失敗,然後使用回報的 devtools URL 連接 Chrome,並比較 socket-close 記錄。修正後應讓應用程式持續執行,並讓偵錯工具能可靠地連線;請使用回報的 NativeScript、iOS 和 Xcode 版本進行驗證。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- ios, javascript
- 領域
- cli, mobile-dev
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100