內容簡介
Krumo 是一個偵錯工具,相當於 print_r() 和 var_dump(),優點是可以將陣列和物件值折疊起來,這樣就佔用較少的空間,讓我們僅看到複雜資料中真正需要的部分。
Hikari Krumo 將其轉換為 WordPress 外掛程式,因此 Krumo 可以在任何 WordPress 頁面中簡單地使用。原始的 Krumo 修正了一些錯誤,並且可以在管理頁面中設定選項,而不需要直接編輯 krumo.ini 檔案。
特色
print_r() 的簡易性和 var_dump() 的詳細性
顯示任何資料,包括資料類型
針對陣列和物件,內部資料會折疊起來,以佔用較少的空間,您可以展開以看到您真正想要看到的值,佔用更少的空間
在 WordPress 的任何地方都可以使用,包括後端和前端
將其隱藏以防止訪問者查看,只有真正需要查看 dump 的人才可以看到它
自動顯示 dump 發生的 PHP 檔案和行數,是偵錯的一個絕佳工具
外掛標籤
開發者團隊
原文外掛簡介
Krumo is a debugging tool equivalent to print_r() and var_dump(), with the advantage of collapsing array and object values so that it takes less space and let us see only what we really need from complex data.
Hikari Krumo ports it to a WordPress plugin, so that Krumo becomes easily available in any WordPress page. Original Krumo has a few bugs fixed and has its options available in an admin page instead of requiring krumo.ini file edited directly.
Features
The simplicity of print_r() with the details of var_dump()
Show any data, including its data type
For arrays and objects, internal data are collapsed, so that it takes less space and you can expand to see only those values you really wanna see, spending much less space
Works anywhere in WordPress, backend and frontend
Hide it from visitors and only those who really need to see dump be able to see it
Automatically shows PHP file and line where dump happened, a great tool for debugging
