Alat Debug Offline memungkinkan Anda melihat dan menganalisis sesi debug "offline" yang
sebelumnya didownload
di tampilan Debug di Editor Proxy. Sesi debug tersimpan pada dasarnya adalah "rekaman" sesi debug, dan dapat berguna untuk kasus saat pemecahan masalah dan analisis lebih lanjut diperlukan. UI untuk alat Debug Offline
mirip dengan tampilan Debug di Editor Proxy.
Untuk mempelajari UI Alat Debug dan cara mendownload sesi debug, lihat Menggunakan Debug.
UI Konsol Cloud
Debug v2 (baru)
Untuk melihat data debug yang didownload menggunakan Proses Debug Offline:
Catatan: Saat Anda mendownload sesi debug di tampilan
Debug Editor Proxy, nama file yang didownload memiliki
format debug-{session ID}.json, dengan {session id}
adalah ID sesi debug; namun, Anda dapat mengganti nama file
jika ingin.
UI Apigee memuat data file debug dan menampilkan semua transaksi dalam daftar di panel Transactions.
Klik baris untuk transaksi di panel Transaksi
untuk menampilkan transaksi di Peta Transaksi.
Dari sini, Anda dapat menjelajahi sesi debug seperti yang Anda lakukan untuk
sesi debug yang baru dibuat. Lihat
Membuat sesi debug untuk mengetahui informasi selengkapnya.
Debug v1
Untuk melihat data debug yang didownload menggunakan Debug Offline:
Untuk memuat data ke tampilan Offline Debug, klik tombol
Open Debug Session
dan pilih file sesi debug offline yang didownload sebelumnya
dalam format JSON.
Catatan: Saat Anda mendownload sesi debug di tampilan Debug Editor Proxy,
nama file yang didownload memiliki bentuk 'debug-{session ID}.json', dengan {session ID}
adalah ID sesi debug. Namun, Anda dapat mengganti nama file jika mau.
UI Apigee memuat data file debug dan menampilkan baris baru untuk transaksi
di panel sebelah kiri.
Klik baris untuk transaksi di panel kiri guna menampilkan diagram Gantt transaksi tersebut dalam diagram Gantt.
Dari sini, Anda dapat menjelajahi sesi debug seperti yang Anda lakukan di
tampilan Debug di
Editor Proxy baru. Lihat bagian "Melihat diagram Gantt untuk permintaan dan respons".
UI Klasik
Untuk melihat data debug yang didownload menggunakan Debug Offline:
Perhatikan wilayah berikut di tampilan Offline Debug:
File debug: Menampilkan jenis permintaan. Gunakan area ini untuk berpindah di antara
permintaan.
Opsi Tampilan: Menampilkan opsi konfigurasi, seperti yang dijelaskan dalam
Menggunakan Debug.
Detail Sesi Debug: Menampilkan detail tentang sesi debug.
Peta Transaksi: Menampilkan jalur permintaan melalui proxy API; jalur ini dikenal sebagai peta transaksi; peta ini menampilkan kebijakan yang ditemui dan menunjukkan apakah ada error yang terjadi selama eksekusi kebijakan tersebut.
Detail Fase: Menampilkan header permintaan untuk permintaan yang saat ini dipilih.
Saat melihat data debug di UI Apigee, Anda dapat mengaktifkan atau menonaktifkan berbagai opsi seperti apakah akan
melihat kebijakan yang dinonaktifkan atau variabel dan properti. Untuk mengetahui informasi selengkapnya, lihat
Men-debug dengan alat debug.
Untuk memuat data ke tampilan Offline Debug, klik tombol
Choose File di panel kiri alat Offline Debug
dan pilih file sesi rekaman aktivitas offline yang sebelumnya didownload dalam format JSON.
Catatan:Jangan gunakan tombol Pilih File di panel sebelah kanan,
karena tidak menerima file JSON.
UI Apigee memuat data file debug dan menampilkannya.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-03 UTC."],[[["\u003cp\u003eThe Offline Debug tool in Apigee and Apigee hybrid allows users to view and analyze previously downloaded debug sessions.\u003c/p\u003e\n"],["\u003cp\u003eUsers can access the Offline Debug tool via the Google Cloud console (Debug v1 or v2) or the Classic UI, with similar navigation structures across platforms.\u003c/p\u003e\n"],["\u003cp\u003eTo load a debug session in the Offline Debug tool, users must select a downloaded JSON file (typically named \u003ccode\u003edebug-{session ID}.json\u003c/code\u003e) via the "Open Debug Session" or "Choose File" button.\u003c/p\u003e\n"],["\u003cp\u003eOnce a debug session is loaded, users can explore the transaction details, including the transaction map and phase details, to troubleshoot and analyze API proxy behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe Offline debug tool allows for analysis and debugging to occur even when the debug session is not actively running.\u003c/p\u003e\n"]]],[],null,["# Using Offline Debug\n\n*This page\napplies to **Apigee** and **Apigee hybrid**.*\n\n\n*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*\n\nThe Offline Debug tool lets you view and analyze \"offline\" debug sessions that were\n[previously downloaded](/apigee/docs/api-platform/debug/trace#downloading-a-debug-session)\nin the **Debug** view in the Proxy Editor. A\nsaved debug session is essentially a \"recording\" of a debug session, and can be useful for cases\nwhere troubleshooting and further analysis is required. The UI for the Offline Debug tool is\nsimilar to the **Debug** view in the Proxy Editor.\n\nTo learn about the Debug Tool UI and on downloading debug\nsessions, see [Using Debug](/apigee/docs/api-platform/debug/trace).\n**Note:** The Debug Tool is available in the Google Cloud console, the Classic UI, and some debug actions can be performed using the API as described in the following tabs. The Google Cloud console options are Debug v2 (new) and Debug v1 (released [07/01/2022](/apigee/docs/api-platform/release-notes#July_01_2022)). You can switch between versions of the Debug Tool in the Google Cloud console and the Classic UI. \n\n### Cloud Console UI\n\n### Debug v2 (new)\n\nTo view downloaded debug data using Offline Debug:\n\n1. Sign in to the [Google Cloud console](https://console.cloud.google.com/apigee).\n2. Select **Develop \\\u003e Offline Debug**.\n\n The **Offline Debug** view displays:\n3. To load data into the **Offline Debug** view, click\n **Open Debug Session** , select a\n [previously downloaded](/apigee/docs/api-platform/debug/trace#download) offline debug session file in JSON format,\n and then click **Open**.\n\n **Note:** When you download a debug session in the Proxy Editor\n **Debug** view, the name of the download file has the form\n `debug-{session ID}.json`, where `{session id}`\n is the ID of the debug session; however, you can rename the file\n if you wish.\n\n The Apigee UI loads the debug file's data and displays all of\n the transactions in the list in the **Transactions** panel.\n4. Click the row for the transaction in the **Transactions** panel to display the transaction in the **Transaction Map** .\n\nFrom here, you can explore the debug session just as you would for\na newly-created debug session. See\n[Creating a debug session](/apigee/docs/api-platform/debug/trace#creating-a-debug-session) for more information.\n\n### Debug v1\n\nTo view downloaded debug data using Offline Debug:\n\n1. Sign in to the [Google Cloud console](https://console.cloud.google.com/apigee).\n2. Select **API Proxies** from the main view.\n3. Select **Develop \\\u003e Offline Debug**.\n\n The **Offline Debug** view displays:\n\n4. To load data into the **Offline Debug** view, click the\n **Open Debug Session** button\n and select a [previously downloaded](/apigee/docs/api-platform/debug/trace#download)\n offline debug session file in JSON format.\n\n **Note:** When you download a debug session in the Proxy Editor **Debug** view,\n the name of the download file has the form 'debug-{session ID}.json', where {session id}\n is the ID of the debug session. However, you can rename the file if you wish.\n\n The Apigee UI loads the debug file's data and displays a new row for the transaction\n in the left-hand panel.\n\n5. Click the row for the transaction in the left-hand panel to display a Gantt chart of the transaction in a Gantt chart.\n\nFrom here, you can explore the debug session just as you would in the\n[**Debug** view in the new\nProxy Editor](/apigee/docs/api-platform/debug/trace#new-proxy-editor). See the section \"Viewing the Gantt chart for a request and response.\"\n\n### Classic UI\n\nTo view downloaded debug data using Offline Debug:\n\n1. Sign in to the [Apigee UI](https://apigee.google.com).\n2. Select **API Proxies** from the main view.\n3. Select **Develop \\\u003e Offline Debug**.\n\n The **Offline Debug** view displays:\n\n Note the following regions of the **Offline Debug** view:\n - **Debug file:** Displays the request type. Use this area to navigate among the requests.\n - **View Options:** Displays configuration options, as described in [Using Debug](/apigee/docs/api-platform/debug/trace).\n - **Debug Session Details:** Displays details about the debug session.\n - **Transactions Map:** Shows the path of the request through the API proxy; this path is known as the *transaction map*; it shows which policies were encountered and indicates if any errors occurred during the execution of those policies.\n - **Phase Details:** Shows the request headers for the currently selected request.\n\n When viewing debug data in the Apigee UI, you can toggle various options such as whether to\n view policies that are disabled or variables and properties. For more information, see\n [Debugging with the debug tool](/apigee/docs/api-platform/debug/trace#debuggingwithtrace).\n4. To load data into the **Offline Debug** view, click the\n **Choose File** button in the left-hand pane of the Offline Debug tool\n and select a previously downloaded offline trace session file in JSON format.\n\n **Note:** Do *not* use the **Choose File** button in the right-hand pane,\n as it does not accept JSON files.\n\n The Apigee UI loads the debug file's data and displays it."]]