debugger.lua
debugger.lua copied to clipboard
Truncate long string properties
When inspecting a table, it sometimes has a property whose value is a long string that fills up the terminal. This is often too noisy. If I wanted to see the entire string, I would inspect that specific property.
Truncation would replace the end of the string with ... (# = 1000). This could be colored so it's clear this isn't the string's real value.
What would be a good length for truncation?
We may also want to consider doing this for tables with ~100+ properties, but I'm not sure how a user would expand it. At least do it for nested tables, I think.