This example uses evalLuaPayload() to send a compiled Lua payload over USB and execute it on your Playdate, as long as the current application is not a system app.
The payload is designed to print all of the global variables from the current app's Lua runtime, the code is:
for n in pairs(_G) do print(n) end