Gỡ lỗi lời hứa bằng Công cụ cho nhà phát triển
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trong tập này, Addy và Matt sẽ hướng dẫn cách gỡ lỗi cho ES6 Promses bằng cách sử dụng trình gỡ lỗi Promses hoàn toàn mới trong Công cụ dành cho nhà phát triển của Chrome.
Tùy thuộc vào phiên bản Chrome, bạn có thể cần bật Trình theo dõi lời nhắc. Mở chế độ cài đặt Công cụ cho nhà phát triển – Thử nghiệm, kiểm tra công cụ kiểm tra Promise, sau đó khởi động lại Công cụ cho nhà phát triển.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],["Addy and Matt demonstrate debugging ES6 Promises with Chrome DevTools' Promises debugger. The process involves potentially enabling the Promise inspector within DevTools' settings under Experiments, which may require a restart of DevTools. It's also noted that the Promise inspector support has been removed in some versions of Chrome. The instructions can be found by following a link to Google Developers Channel.\n"]]