- fix: can't correctly set break conditions

This commit is contained in:
Roy Qu 2022-03-01 08:13:51 +08:00
parent cc0b209e2f
commit afec4355bd
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

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