前言介紹
- 這款 WordPress 外掛「Debug Bar Tracer」是 2014-05-01 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2014-05-02,距離現在已有 4020 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.1 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
welcher |
外掛標籤
debug bar addon | theme development | plugin development |
內容簡介
在建立自定義佈景主題或外掛時,經常需要查看正在處理的資料,這可能會讓人感到不便和難看。
此外掛會添加一個新的標籤到Debug Bar外掛中,讓您可以將數據“追踪”到一個窗口並顯示不僅是數據,還有呼叫來自何處和可選的描述。
此外,這個外掛有綠色的網格。
關於debug_trace
方法debug_trace()接受一個可以是任何資料類型的參數。
如果您要傳遞debug_trace()的描述符,請傳遞一個具有以下索引的陣列:
‘key’ => 描述符
‘data’ => 您要追踪的內容,可以是任何資料類型。
在幕後,每個追踪實際上是一個陣列,其中包含呼叫位置、資料和可選的自定義鍵。
如果傳遞給debug_trace()的參數是具有‘ key ’或‘ data ’鍵的陣列,則該方法使用它來覆蓋默認值。
否則,該方法假定您要將傳遞的參數作為‘ data ’追踪。
原文外掛簡介
Many times when creating a custom theme or plugin there is need to view a piece of data you are working with which can be unweidly and not to mention ugly.
This plugin adds a new tab to the Debug Bar plugin that allows you to “trace” the data to a window and displays not only the data, but where the call came from and optionally a description.
Plus, it’s green like the Matrix.
About debug_trace
The method debug_trace() takes one parameter that can be of any data type.
If you want to pass a descriptor for the debug_trace(), pass an array with the following indices:
‘key’ => The descriptor
‘data’ => What you want to trace – can be any data type.
Behind the scenes, each trace is actually an array containing the location of the call, the data and optionally a custom key.
If the parameter passed to debug_trace() is an array that has a key of ‘key’ or ‘data’, then the method overrides the defaults with it.
Otherwise, the method assumes you want to trace the passed parameter as the ‘data’.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Debug Bar Tracer」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
WordPress Plugin Framework 》WordPress 外掛框架 ( WPF ) 是一個 PHP 類別,用於提供開發 WordPress 外掛程式的框架。, 此套件還包含一個示範外掛程式,用於演示 WPF 的功能和能力。WPF ...。
Plugin Downloads Display 》這個外掛可以讓你顯示外掛程式被下載的次數。 可以使用簡碼在文章中顯示,也可以使用函數在模板中顯示。, 簡碼: [show_downloads slug="外掛程式的slug"]。,...。