How to dump a table to the screen
Is there a lua equivalent to var_dump from https://www.php.net/manual/en/function.var-dump.php
Basically I wanting to know what's inside a table. |
Code:
/dump <table name> Otherwise, in code you could: Lua Code:
Edited after remembering DevTools had changed from it's original incarnation thanks to wardz and LudiusMaximus. |
/dump table
/run DevTools_DumpCommand("table") /run DevTools_Dump(table) Edit; might need UIParentLoadAddOn("Blizzard_DebugTools") if not using /dump |
When I want to search recursively for strings in tables, I use this function:
Lua Code:
|
The built-in DevTools also supplies a /tableinspect command that allows you to navigate tables in an inspection window.
|
All times are GMT -6. The time now is 01:35 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI