Set some reasonable limits for sending information to the debugger, closes #5848

This commit is contained in:
Juan Linietsky
2017-08-08 20:55:22 -03:00
parent df573f5c3a
commit 90a595ac42
4 changed files with 24 additions and 12 deletions

View File

@@ -1595,6 +1595,7 @@ void ScriptEditorDebugger::_bind_methods() {
ScriptEditorDebugger::ScriptEditorDebugger(EditorNode *p_editor) {
ppeer = Ref<PacketPeerStream>(memnew(PacketPeerStream));
ppeer->set_input_buffer_max_size(1024 * 1024 * 8); //8mb should be enough
editor = p_editor;
tabs = memnew(TabContainer);