[debugger] handle paused state when there are 0 frames
- Ngôn ngữ chính
- Dart
- Star
- 1.7k
- Fork
- 404
- Merge trung bình
- 6 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 18
Mô tả
Discussion started here: https://github.com/flutter/devtools/pull/2683#discussion_r572410011
We can get into a state where the app is paused but there are not frames. The original discussion started as a question of whether or not we should support stepping in this case. This question still stands, but sparks a larger question of how we can make this case actionable for our users? If there are neither scripts nor frames to show, what will the user experience be like as the user steps / resumes? If they did not manually pause the app, how will the user understand why the app is paused?
In the web case, the app can be paused in some JS or SDK code for which we don't have any frames (do we have scripts at this point @grouma?). Perhaps we could add some fake frame `JS` that at least communicates to the user that their app is paused in JS code, and then point them to Chrome DevTools for a better JS debugging experience.
@grouma @bkonyi for input on what the debugging workflow should look like in this case for both web and mobile connections.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách đọc cuộc thảo luận trong PR #2683, sau đó truy vết cách DevTools biểu diễn các trạng thái tạm dừng khi không có frame hoặc script nào khả dụng. Hành vi mong muốn đối với việc thực hiện từng bước, tiếp tục và giải thích sự khác nhau giữa các lần tạm dừng trên web và trên mobile vẫn cần được thống nhất; được xem là hoàn thành khi một trải nghiệm người dùng đã được quyết định, có thể triển khai, được thực hiện và được kiểm thử bằng các bài kiểm thử phù hợp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- dart
- Lĩnh vực
- devtools
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- 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
- 25/100