There’s a library on github called Inspect (https://github.com/kikito/inspect.lua) which looks like it could be handy for inspecting objects, however I’ve not been able to get it to work in the Lua environment. I’ve tried importing it as suggested in the tool’s instructions, copying/pasting into the terminal, and all to no avail. It tells me inspect isn’t declared.
>>> local inspect = require 'inspect'
>>> inspect(renoise.song().instruments)
*** [string "inspect(renoise.song().instruments)"]:1: variable 'inspect' is not declared
*** stack traceback:
*** [C]: in function '_error'
*** [string "local mt = getmetatable(_G)..."]:29: in function <[string "local mt = getmetatable(_G)..."]:24>
*** [string "inspect(renoise.song().instruments)"]:1: in main chunk