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)); } }