[FEATURE] Ограничение числа символов в отладочном окне

This commit is contained in:
Gravit 2019-04-24 12:51:55 +07:00
parent cd490a0868
commit 7704e46996
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -37,6 +37,12 @@ var debug = {
}, },
append: function(text) { append: function(text) {
LogHelper.debug(debug.output.getText().length());
//Experimental Feature
if(debug.output.getText().length() > 32000 /* Max length */)
{
debug.output.deleteText(0, text.length());
}
debug.output.appendText(text); debug.output.appendText(text);
}, },