ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
บันทึกร่องรอย
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คุณสามารถบันทึกร่องรอยในอุปกรณ์ผ่าน Winscope หรือผ่านคำสั่ง Android Debug Bridge (adb)
ใน Winscope คุณสามารถเรียกข้อมูลร่องรอยล่าสุดที่รวบรวมจากอุปกรณ์ในเซสชันก่อนหน้าได้ ฟีเจอร์นี้มีประโยชน์อย่างยิ่งเมื่อพบปัญหาการเชื่อมต่อ เช่น การใช้ ADB ผ่าน Wi-Fi หรือเมื่อ Winscope ปิดโดยไม่คาดคิด หากไม่มีร่องรอยจากเซสชันล่าสุด Winscope จะแสดงข้อความไม่พบไฟล์ร่องรอยที่ถูกต้อง
ข้อความแสดงข้อผิดพลาด
Winscope จะแสดงข้อความต่อไปนี้ระหว่างการเก็บรวบรวมร่องรอย
ข้อความ |
คำอธิบาย |
ไม่ได้เลือกเป้าหมายการติดตาม |
ไม่ได้เลือกช่องทําเครื่องหมายการติดตาม |
เกิดข้อผิดพลาดระหว่างการติดตาม:
ข้อผิดพลาด: INVALID_LAYER_STACK โปรดตรวจสอบสถานะการแสดงผล (ต้องเปิดอยู่ตอนเริ่มการติดตาม) |
มีคำขอบันทึกหน้าจอ แต่จอแสดงผลปิดอยู่เมื่อเริ่มการติดตาม |
เกิดข้อผิดพลาดระหว่างการติดตาม
ข้อความแสดงข้อผิดพลาดที่เฉพาะเจาะจงที่ได้รับจากคำสั่ง adb เช่น ค้นหาไฟล์ที่ถูกต้องสำหรับ <trace types
requested> ไม่พบ |
adb อ่านไฟล์ติดตามไม่ได้ ซึ่งมักเกิดขึ้นเมื่อ adb ไม่ได้ทำงานในฐานะรูท |
เกิดข้อผิดพลาดระหว่างการติดตาม ดังนี้
การติดตามหมดเวลา |
อุปกรณ์มีปัญหาในการเชื่อมต่อ |
เกิดข้อผิดพลาดระหว่างการติดตาม ดังนี้
{inner error} |
ข้อความนี้ครอบคลุมข้อผิดพลาดอื่นๆ ทั้งหมด |
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# Capture traces\n\nYou can capture traces on the\n[device](/docs/core/graphics/winscope/capture/on-device),\nthrough\n[Winscope](/docs/core/graphics/winscope/capture/winscope),\nor through\n[Android Debug Bridge (adb)](/docs/core/graphics/winscope/capture/adb)\ncommands.\n\nIn Winscope, you can retrieve the latest traces collected from a device during\nthe previous session. This feature is especially helpful when facing connection\nissues, such as using ADB over Wi-Fi, or when Winscope closes unexpectedly. If\nthere are no traces from the last session, Winscope displays **No valid trace\nfiles found**.\n\nError messages\n--------------\n\nWinscope shows the following messages during trace collection:\n\n| Message | Description |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|\n| No trace targets selected | No trace checkboxes are selected. |\n| Errors occurred during tracing: ERROR: `INVALID_LAYER_STACK`, please check your display state (must be on at start of trace) | A screen recording was requested, but the display was off at the start of trace. |\n| Errors occurred during tracing: A specific error message received from adb command, such as Failed to find valid files for *\\\u003ctrace types requested\\\u003e* | adb couldn't read the trace files, which typically happens when adb isn't running as root. |\n| Errors occurred during tracing: *Tracing time out* | There's a connection issue with the device. |\n| Errors occurred during tracing: *{inner error}* | This message covers all other errors. |"]]