NativeScript / NativeScript/android
The run-time takes 5+ seconds to respond to Debugger.enable
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C++
- Star
- 563
- Fork
- 144
- Merge trung bình
- 10 giờ 46 phút
- Pull request đã merge (30 ngày)
- 14
Mô tả
Please, provide the details below:
Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?
Yes
Tell us about the problem
The run-time takes 5+ seconds to respond to Debugger.enable
Please provide the following version numbers that your issue occurs with:
- CLI: 3.3.1
Please tell us how to recreate the issue in as much detail as possible.
This is reproducible with:
https://github.com/NativeScript/template-master-detail-ts
https://github.com/NativeScript/template-master-detail-ng
https://github.com/NativeScript/template-master-detail-kinvey
against an Android Pixel.
clone https://github.com/NativeScript/template-master-detail-ts
cd template-master-detail-ts
tns platform add android
tns debug android --start
After receiving the Debugger.enable request the run-time would trigger scriptParsed events for all sources in the project (500+ files) first and only then would respond to the Debugger.enable request.
Starting a debug session against any of the listed projects would time out as the JavaScript debugger (Microsoft implementation) in Visual Studio has a non-configurable 5 second timeout on all requests.
In {N} Sidekick the debug session would not timeout but it would still take more than 5 seconds to initialize.
Please note that after receiving a response to Debugger.enable the JavaScript debugger in Visual Studio would start sending Debugger.setBreakpointByUrl for all pre-set breakpoints (again 5s timeout) and if the run-time does not respond to a request the breakpoint would remain inactive.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện độ trễ với các dự án template-master-detail được liệt kê trên Android Pixel bằng tns debug android --start. Theo dõi cách runtime xử lý Debugger.enable, scriptParsed và Debugger.setBreakpointByUrl; được xem là hoàn tất khi quá trình khởi tạo debugger và các breakpoint đặt trước hoàn thành mà không gặp timeout năm giây.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- android, javascript
- Lĩnh vực
- devtools, mobile-dev, performance
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 32/100