From afec4355bd4ae146479564c558ec598818ae6610 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Tue, 1 Mar 2022 08:13:51 +0800 Subject: [PATCH] - fix: can't correctly set break conditions --- NEWS.md | 1 + RedPandaIDE/debugger.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 17c7a632..0f4e4557 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,7 @@ Red Panda C++ Version 0.14.5 - fix: the "gnu c++ 20" option in compiler set options is wrong - enhancement: option "open files in the same red panda C++ instance", in options->environment->file associations - enhancement: hide unsupported files in files view + - fix: can't correctly set break conditions Red Panda C++ Version 0.14.4 diff --git a/RedPandaIDE/debugger.cpp b/RedPandaIDE/debugger.cpp index c111cceb..791d36e0 100644 --- a/RedPandaIDE/debugger.cpp +++ b/RedPandaIDE/debugger.cpp @@ -350,10 +350,10 @@ void Debugger::setBreakPointCondition(int index, const QString &condition) PBreakpoint breakpoint=mBreakpointModel->setBreakPointCondition(index,condition); if (condition.isEmpty()) { sendCommand("-break-condition", - QString("%1").arg(breakpoint->line)); + QString("%1").arg(breakpoint->number)); } else { sendCommand("-break-condition", - QString("%1 %2").arg(breakpoint->line).arg(condition)); + QString("%1 %2").arg(breakpoint->number).arg(condition)); } }