diff --git a/src/plugins/debugger/debuggeroutputwindow.cpp b/src/plugins/debugger/debuggeroutputwindow.cpp
index 518551185a7026270267672ada7161c8ab3ec048..a953abc502a455117704835e0a00ec98b6b0617b 100644
--- a/src/plugins/debugger/debuggeroutputwindow.cpp
+++ b/src/plugins/debugger/debuggeroutputwindow.cpp
@@ -68,6 +68,7 @@ public:
     DebuggerPane(QWidget *parent)
         : QPlainTextEdit(parent)
     {
+        setMaximumBlockCount(100000);
         m_clearContentsAction = new QAction(this);
         m_clearContentsAction->setText(tr("Clear contents"));
         m_clearContentsAction->setEnabled(true);