1
7
Fork
You've already forked debugger.lua
0

Truncate long string properties #51

Open
opened 2018年05月01日 17:01:09 +02:00 by aleclarson · 1 comment
aleclarson commented 2018年05月01日 17:01:09 +02:00 (Migrated from github.com)
Copy link

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?

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 commented 2018年05月01日 17:03:04 +02:00 (Migrated from github.com)
Copy link

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.

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.
Sign in to join this conversation.
No Branch/Tag specified
master
no-extras
dev
patch-1
media
simple-term
slembcke
error-hook
standalone
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
slembcke/debugger.lua#51
Reference in a new issue
slembcke/debugger.lua
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?