內容簡介
呼叫 kb_debug 並傳入任何要記錄的引數,它們將會以漂亮的格式列印在文件的末尾。
若要記錄並顯示您的外掛所產生的所有警告、錯誤和通知的清單,請在您的網址中加入 ?KB_Debug_Errors。
若要查看所有鉤子的列表,並按照觸發順序顯示它們被呼叫時使用的引數以及運行在它們上面的函數(同樣按照順序),請在網址中添加 ?KB_Debug_Hooks。
若要兩者都顯示,只需添加 ?KB_Debug_Errors&KB_Debug_Hooks。(基本上必須設置 $_GET[var] 才能啟用該功能)。
功能
記錄和顯示所有警告、錯誤等及其上下文。
記錄和顯示所有鉤子,以及每個鉤子被呼叫時使用的引數和運行在該特定鉤子上的函數(按順序)。
外掛標籤
開發者團隊
原文外掛簡介
Call kb_debug with any arguments that you want to log and they will be pretty printed at the end of the document.
To log and show a list of all warnings, errors and notices generated by your plugin, add ?KB_Debug_Errors to your URL.
To see a list of all hooks in the order they fire as well as what arguments they are called with and what functions run on them (again, in which order),
add a ?KB_Debug_Hooks to the URL.
To see both just add ?KB_Debug_Errors&KB_Debug_Hooks. (Essentially $_GET[var] must be set to enable that feature).
Features
Logs and displays all warnings, errors, etc. alongwith their context.
Logs and displays all hooks alongwith the argument(s) each hook is called with and the functions that run on that particular hook (in order).
