debugger.lua icon indicating copy to clipboard operation
debugger.lua copied to clipboard

Truncate long string properties

Open aleclarson opened this issue 7 years ago • 1 comments

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?

aleclarson avatar May 01 '18 15:05 aleclarson

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.

aleclarson avatar May 01 '18 15:05 aleclarson