I have massive strings i need (dont ask why its hard to explain) and if i try to print them it just adds [trimmed] to the end of the string, and cuts it off. and if i try to make it a textbox text, it says the string is too big. How can i recive this string?
Only thing I could’ve found about this was that this problem was discussed in the past (it was about tables), not sure but maybe can help you:
I occasionally need to inspect some very large string for debugging or collecting stats. Usually this string represents data from a datastore. For example, a player recently reported their data may have been corrupted, so I needed to search through a 1MB large datastore key for instances of their user-id. In the past, I’ve printed the contents of the key to the output, copied/pasted into a text editor, and Ctrl+F for their user-id to look at the relevant data. I can’t easily use that approach to…
Possible reason:
I assume this is done for performance reason, print is a hilariously slow function in Studio because of the output window’s pretty print.
Of course, I do believe you should be able to turn this off if you’re trying to debug a very long JSON string.
Possible solution(?):
I mean, if you really want to see more of that table why not just convert it into a regular luau table and print that instead?
Found out i can put a string in a table and it wont be trimmed.
system
(system)
Closed
November 19, 2024, 6:58pm
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.