diff --git a/RedPandaIDE/debugger.cpp b/RedPandaIDE/debugger.cpp index 4cd44a40..5f77e1ab 100644 --- a/RedPandaIDE/debugger.cpp +++ b/RedPandaIDE/debugger.cpp @@ -1159,7 +1159,16 @@ AnnotationType DebugReader::peekNextAnnotation() return result; } -void DebugReader::processDebugOutput() +void DebugReader::processResultRecord(const QString &line) +{ + if (line.startsWith("^exit")) { + doprocessexited = true; + return; + } + +} + +void DebugReader::processDebugOutput(const QString& debugOutput) { // Only update once per update at most //WatchView.Items.BeginUpdate; @@ -1186,13 +1195,11 @@ void DebugReader::processDebugOutput() doupdatecpuwindow = false; doreceivedsfwarning = false; - QStringList lines = TextToLines(mOutput); + QStringList lines = TextToLines(debugOutput); - mOutputLine = 0; - while (mOutputLine