Unable to wait for more than ~20 seconds on application start with --debug-brk

Đang mở
#4,307 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
ios, javascript
Lĩnh vực
cli, devtools, mobile-dev

Hướng nghiên cứu

Bắt đầu với điểm vào tns debug ios --debug-brk và kiểm tra cách ios-device-lib xử lý waitForDebugger, so sánh với hành vi của trình quản lý ứng dụng trên trình mô phỏng iOS. Tái hiện trên một thiết bị iOS thực và xác minh rằng việc gắn trình gỡ lỗi native giữ cho ứng dụng và trình gỡ lỗi Chrome được kết nối quá 30 giây.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug os: ios severity: low

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: 5.2.0 (the current next)
  • Cross-platform modules: 5.1.0
  • iOS Runtime: 5.1.1

To Reproduce

  1. tns create myApp --js
  2. tns debug ios --debug-brk (on a real iOS device)
  3. open the debug URL in chrome
  4. wait on the first line for more than 30 seconds (the app will be killed and the debugger disconnected)

Expected behavior
You should be able to wait there as much as you want

Additional context
The app is killed by iOS. We've solved this issue for simulators by attaching an lldb debugger to the application (check out the iOS simulators application manager). We should implement a similar solution in the ios-device-lib - we could use some gdb options in order to attach a native debugger to the app when waitForDebugger is passed.

Ngôn ngữ chính
JavaScript
Star
1.1k
Fork
204
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NativeScript/nativescript-cli

Tất cả issue của NativeScript/nativescript-cli

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.