- fix: can't correctly set break conditions
This commit is contained in:
parent
cc0b209e2f
commit
afec4355bd
1
NEWS.md
1
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
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue