2017-10-03 16:43:44 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-10-03 16:43:44 +00:00
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
#include "DolphinQt/Debugger/BreakpointDialog.h"
|
2017-10-03 16:43:44 +00:00
|
|
|
|
2022-01-31 18:12:55 +00:00
|
|
|
#include <QButtonGroup>
|
2017-10-03 16:43:44 +00:00
|
|
|
#include <QCheckBox>
|
|
|
|
#include <QDialogButtonBox>
|
|
|
|
#include <QGridLayout>
|
|
|
|
#include <QGroupBox>
|
|
|
|
#include <QHBoxLayout>
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QLineEdit>
|
2022-10-08 20:23:24 +00:00
|
|
|
#include <QPushButton>
|
2017-10-03 16:43:44 +00:00
|
|
|
#include <QRadioButton>
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
#include "Core/PowerPC/BreakPoints.h"
|
2020-12-16 23:40:20 +00:00
|
|
|
#include "Core/PowerPC/Expression.h"
|
2022-11-21 04:11:15 +00:00
|
|
|
#include "Core/PowerPC/PowerPC.h"
|
2018-07-06 22:40:15 +00:00
|
|
|
#include "DolphinQt/Debugger/BreakpointWidget.h"
|
2019-03-04 19:49:00 +00:00
|
|
|
#include "DolphinQt/QtUtils/ModalMessageBox.h"
|
2017-10-03 16:43:44 +00:00
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
BreakpointDialog::BreakpointDialog(BreakpointWidget* parent)
|
|
|
|
: QDialog(parent), m_parent(parent), m_open_mode(OpenMode::New)
|
2017-10-03 16:43:44 +00:00
|
|
|
{
|
2021-08-13 08:56:11 +00:00
|
|
|
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
2017-10-03 16:43:44 +00:00
|
|
|
setWindowTitle(tr("New Breakpoint"));
|
|
|
|
CreateWidgets();
|
|
|
|
ConnectWidgets();
|
|
|
|
|
|
|
|
OnBPTypeChanged();
|
|
|
|
OnAddressTypeChanged();
|
|
|
|
}
|
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
BreakpointDialog::BreakpointDialog(BreakpointWidget* parent, const TBreakPoint* breakpoint)
|
|
|
|
: QDialog(parent), m_parent(parent), m_open_mode(OpenMode::EditBreakPoint)
|
|
|
|
{
|
|
|
|
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
|
|
|
setWindowTitle(tr("Edit Breakpoint"));
|
|
|
|
CreateWidgets();
|
|
|
|
ConnectWidgets();
|
|
|
|
|
|
|
|
m_instruction_address->setText(QString::number(breakpoint->address, 16));
|
|
|
|
if (breakpoint->condition)
|
|
|
|
m_instruction_condition->setText(QString::fromStdString(breakpoint->condition->GetText()));
|
|
|
|
|
|
|
|
m_do_break->setChecked(breakpoint->break_on_hit && !breakpoint->log_on_hit);
|
|
|
|
m_do_log->setChecked(!breakpoint->break_on_hit && breakpoint->log_on_hit);
|
|
|
|
m_do_log_and_break->setChecked(breakpoint->break_on_hit && breakpoint->log_on_hit);
|
|
|
|
|
|
|
|
OnBPTypeChanged();
|
|
|
|
OnAddressTypeChanged();
|
|
|
|
}
|
|
|
|
|
|
|
|
BreakpointDialog::BreakpointDialog(BreakpointWidget* parent, const TMemCheck* memcheck)
|
|
|
|
: QDialog(parent), m_parent(parent), m_open_mode(OpenMode::EditMemCheck)
|
|
|
|
{
|
|
|
|
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
|
|
|
setWindowTitle(tr("Edit Breakpoint"));
|
|
|
|
|
|
|
|
CreateWidgets();
|
|
|
|
ConnectWidgets();
|
|
|
|
|
|
|
|
m_memory_address_from->setText(QString::number(memcheck->start_address, 16));
|
|
|
|
if (memcheck->is_ranged)
|
|
|
|
{
|
|
|
|
m_memory_use_address->setChecked(false);
|
|
|
|
m_memory_use_range->setChecked(true);
|
|
|
|
m_memory_address_to->setText(QString::number(memcheck->end_address, 16));
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
m_memory_address_to->setText(QString::number(memcheck->start_address + 1, 16));
|
|
|
|
}
|
|
|
|
|
|
|
|
m_memory_on_read->setChecked(memcheck->is_break_on_read && !memcheck->is_break_on_write);
|
|
|
|
m_memory_on_write->setChecked(!memcheck->is_break_on_read && memcheck->is_break_on_write);
|
|
|
|
m_memory_on_read_and_write->setChecked(memcheck->is_break_on_read && memcheck->is_break_on_write);
|
|
|
|
|
|
|
|
m_do_break->setChecked(memcheck->break_on_hit && !memcheck->log_on_hit);
|
|
|
|
m_do_log->setChecked(!memcheck->break_on_hit && memcheck->log_on_hit);
|
|
|
|
m_do_log_and_break->setChecked(memcheck->break_on_hit && memcheck->log_on_hit);
|
|
|
|
|
|
|
|
OnBPTypeChanged();
|
|
|
|
OnAddressTypeChanged();
|
|
|
|
}
|
|
|
|
|
|
|
|
void BreakpointDialog::CreateWidgets()
|
2017-10-03 16:43:44 +00:00
|
|
|
{
|
|
|
|
m_buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
2022-01-31 18:12:55 +00:00
|
|
|
auto* type_group = new QButtonGroup(this);
|
2017-10-03 16:43:44 +00:00
|
|
|
|
|
|
|
// Instruction BP
|
2022-11-21 04:11:15 +00:00
|
|
|
auto* instruction_widget = new QWidget;
|
|
|
|
auto* instruction_layout = new QGridLayout;
|
|
|
|
|
2017-10-03 16:43:44 +00:00
|
|
|
m_instruction_bp = new QRadioButton(tr("Instruction Breakpoint"));
|
2022-01-31 18:12:55 +00:00
|
|
|
type_group->addButton(m_instruction_bp);
|
2017-10-03 16:43:44 +00:00
|
|
|
m_instruction_box = new QGroupBox;
|
|
|
|
m_instruction_address = new QLineEdit;
|
2020-12-16 23:40:20 +00:00
|
|
|
m_instruction_condition = new QLineEdit;
|
2022-10-08 20:23:24 +00:00
|
|
|
m_cond_help_btn = new QPushButton(tr("Help"));
|
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
auto* instruction_data_layout = new QGridLayout;
|
|
|
|
m_instruction_box->setLayout(instruction_data_layout);
|
|
|
|
instruction_data_layout->addWidget(new QLabel(tr("Address:")), 0, 0);
|
|
|
|
instruction_data_layout->addWidget(m_instruction_address, 0, 1);
|
|
|
|
instruction_data_layout->addWidget(new QLabel(tr("Condition:")), 1, 0);
|
|
|
|
instruction_data_layout->addWidget(m_instruction_condition, 1, 1);
|
2017-10-03 16:43:44 +00:00
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
instruction_layout->addWidget(m_instruction_bp, 0, 0, 1, 1);
|
|
|
|
instruction_layout->addWidget(m_cond_help_btn, 0, 1, 1, 1);
|
|
|
|
instruction_layout->addWidget(m_instruction_box, 1, 0, 1, 2);
|
|
|
|
instruction_widget->setLayout(instruction_layout);
|
2017-10-03 16:43:44 +00:00
|
|
|
|
|
|
|
// Memory BP
|
2022-11-21 04:11:15 +00:00
|
|
|
auto* memory_widget = new QWidget;
|
|
|
|
auto* memory_layout = new QGridLayout;
|
|
|
|
|
2017-10-03 16:43:44 +00:00
|
|
|
m_memory_bp = new QRadioButton(tr("Memory Breakpoint"));
|
2022-01-31 18:12:55 +00:00
|
|
|
type_group->addButton(m_memory_bp);
|
2017-10-03 16:43:44 +00:00
|
|
|
m_memory_box = new QGroupBox;
|
2022-01-31 18:12:55 +00:00
|
|
|
auto* memory_type_group = new QButtonGroup(this);
|
2017-10-03 16:43:44 +00:00
|
|
|
m_memory_use_address = new QRadioButton(tr("Address"));
|
|
|
|
m_memory_use_address->setChecked(true);
|
2022-01-31 18:12:55 +00:00
|
|
|
memory_type_group->addButton(m_memory_use_address);
|
2018-01-21 15:25:58 +00:00
|
|
|
// i18n: A range of memory addresses
|
2017-10-03 16:43:44 +00:00
|
|
|
m_memory_use_range = new QRadioButton(tr("Range"));
|
2022-01-31 18:12:55 +00:00
|
|
|
memory_type_group->addButton(m_memory_use_range);
|
2017-10-03 16:43:44 +00:00
|
|
|
m_memory_address_from = new QLineEdit;
|
|
|
|
m_memory_address_to = new QLineEdit;
|
|
|
|
m_memory_address_from_label = new QLabel; // Set by OnAddressTypeChanged
|
|
|
|
m_memory_address_to_label = new QLabel(tr("To:"));
|
2018-01-21 15:25:58 +00:00
|
|
|
// i18n: This is a selectable condition when adding a breakpoint
|
2017-10-03 16:43:44 +00:00
|
|
|
m_memory_on_read = new QRadioButton(tr("Read"));
|
2018-01-21 15:25:58 +00:00
|
|
|
// i18n: This is a selectable condition when adding a breakpoint
|
2017-10-03 16:43:44 +00:00
|
|
|
m_memory_on_write = new QRadioButton(tr("Write"));
|
2018-01-21 15:25:58 +00:00
|
|
|
// i18n: This is a selectable condition when adding a breakpoint
|
2017-10-03 16:43:44 +00:00
|
|
|
m_memory_on_read_and_write = new QRadioButton(tr("Read or Write"));
|
|
|
|
m_memory_on_write->setChecked(true);
|
2018-01-21 15:25:58 +00:00
|
|
|
// i18n: This is a selectable action when adding a breakpoint
|
2020-07-06 22:16:32 +00:00
|
|
|
m_do_log = new QRadioButton(tr("Write to Log"));
|
2018-01-21 15:25:58 +00:00
|
|
|
// i18n: This is a selectable action when adding a breakpoint
|
2020-07-06 22:16:32 +00:00
|
|
|
m_do_break = new QRadioButton(tr("Break"));
|
2018-01-21 15:25:58 +00:00
|
|
|
// i18n: This is a selectable action when adding a breakpoint
|
2020-07-06 22:16:32 +00:00
|
|
|
m_do_log_and_break = new QRadioButton(tr("Write to Log and Break"));
|
|
|
|
m_do_log_and_break->setChecked(true);
|
2017-10-03 16:43:44 +00:00
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
auto* memory_data_layout = new QGridLayout;
|
|
|
|
m_memory_box->setLayout(memory_data_layout);
|
|
|
|
memory_data_layout->addWidget(m_memory_use_address, 0, 0);
|
|
|
|
memory_data_layout->addWidget(m_memory_use_range, 0, 3);
|
|
|
|
memory_data_layout->addWidget(m_memory_address_from_label, 1, 0);
|
|
|
|
memory_data_layout->addWidget(m_memory_address_from, 1, 1);
|
|
|
|
memory_data_layout->addWidget(m_memory_address_to_label, 1, 2);
|
|
|
|
memory_data_layout->addWidget(m_memory_address_to, 1, 3);
|
2018-01-31 18:28:44 +00:00
|
|
|
QGroupBox* condition_box = new QGroupBox(tr("Condition"));
|
|
|
|
auto* condition_layout = new QHBoxLayout;
|
|
|
|
condition_box->setLayout(condition_layout);
|
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
memory_data_layout->addWidget(condition_box, 2, 0, 1, -1);
|
2018-01-31 18:28:44 +00:00
|
|
|
condition_layout->addWidget(m_memory_on_read);
|
|
|
|
condition_layout->addWidget(m_memory_on_write);
|
|
|
|
condition_layout->addWidget(m_memory_on_read_and_write);
|
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
memory_layout->addWidget(m_memory_bp, 0, 0);
|
|
|
|
memory_layout->addWidget(m_memory_box, 1, 0);
|
|
|
|
memory_widget->setLayout(memory_layout);
|
|
|
|
|
2018-01-31 18:28:44 +00:00
|
|
|
QGroupBox* action_box = new QGroupBox(tr("Action"));
|
|
|
|
auto* action_layout = new QHBoxLayout;
|
|
|
|
action_box->setLayout(action_layout);
|
2020-07-06 22:16:32 +00:00
|
|
|
action_layout->addWidget(m_do_log);
|
|
|
|
action_layout->addWidget(m_do_break);
|
|
|
|
action_layout->addWidget(m_do_log_and_break);
|
2017-10-03 16:43:44 +00:00
|
|
|
|
|
|
|
auto* layout = new QVBoxLayout;
|
2022-11-21 04:11:15 +00:00
|
|
|
layout->addWidget(instruction_widget);
|
|
|
|
layout->addWidget(memory_widget);
|
2020-07-06 22:16:32 +00:00
|
|
|
layout->addWidget(action_box);
|
2017-10-03 16:43:44 +00:00
|
|
|
layout->addWidget(m_buttons);
|
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
switch (m_open_mode)
|
|
|
|
{
|
|
|
|
case OpenMode::New:
|
|
|
|
m_instruction_bp->setChecked(true);
|
|
|
|
m_instruction_address->setFocus();
|
|
|
|
break;
|
|
|
|
case OpenMode::EditBreakPoint:
|
|
|
|
memory_widget->setVisible(false);
|
|
|
|
m_instruction_bp->setChecked(true);
|
|
|
|
m_instruction_address->setEnabled(false);
|
|
|
|
m_instruction_address->setFocus();
|
|
|
|
break;
|
|
|
|
case OpenMode::EditMemCheck:
|
|
|
|
instruction_widget->setVisible(false);
|
|
|
|
m_cond_help_btn->setVisible(false);
|
|
|
|
m_memory_bp->setChecked(true);
|
|
|
|
m_memory_address_from->setEnabled(false);
|
|
|
|
m_memory_address_to->setFocus();
|
|
|
|
break;
|
|
|
|
}
|
2021-08-13 08:56:11 +00:00
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
setLayout(layout);
|
2017-10-03 16:43:44 +00:00
|
|
|
}
|
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
void BreakpointDialog::ConnectWidgets()
|
2017-10-03 16:43:44 +00:00
|
|
|
{
|
2022-11-21 04:11:15 +00:00
|
|
|
connect(m_buttons, &QDialogButtonBox::accepted, this, &BreakpointDialog::accept);
|
|
|
|
connect(m_buttons, &QDialogButtonBox::rejected, this, &BreakpointDialog::reject);
|
2017-10-03 16:43:44 +00:00
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
connect(m_cond_help_btn, &QPushButton::clicked, this, &BreakpointDialog::ShowConditionHelp);
|
2022-10-08 20:23:24 +00:00
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
connect(m_instruction_bp, &QRadioButton::toggled, this, &BreakpointDialog::OnBPTypeChanged);
|
|
|
|
connect(m_memory_bp, &QRadioButton::toggled, this, &BreakpointDialog::OnBPTypeChanged);
|
2017-10-03 16:43:44 +00:00
|
|
|
|
|
|
|
connect(m_memory_use_address, &QRadioButton::toggled, this,
|
2022-11-21 04:11:15 +00:00
|
|
|
&BreakpointDialog::OnAddressTypeChanged);
|
2017-10-03 16:43:44 +00:00
|
|
|
connect(m_memory_use_range, &QRadioButton::toggled, this,
|
2022-11-21 04:11:15 +00:00
|
|
|
&BreakpointDialog::OnAddressTypeChanged);
|
2017-10-03 16:43:44 +00:00
|
|
|
}
|
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
void BreakpointDialog::OnBPTypeChanged()
|
2017-10-03 16:43:44 +00:00
|
|
|
{
|
|
|
|
m_instruction_box->setEnabled(m_instruction_bp->isChecked());
|
|
|
|
m_memory_box->setEnabled(m_memory_bp->isChecked());
|
|
|
|
}
|
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
void BreakpointDialog::OnAddressTypeChanged()
|
2017-10-03 16:43:44 +00:00
|
|
|
{
|
|
|
|
bool ranged = m_memory_use_range->isChecked();
|
|
|
|
|
|
|
|
m_memory_address_to->setHidden(!ranged);
|
|
|
|
m_memory_address_to_label->setHidden(!ranged);
|
|
|
|
|
|
|
|
m_memory_address_from_label->setText(ranged ? tr("From:") : tr("Address:"));
|
|
|
|
}
|
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
void BreakpointDialog::accept()
|
2017-10-03 16:43:44 +00:00
|
|
|
{
|
|
|
|
auto invalid_input = [this](QString field) {
|
2019-03-04 19:49:00 +00:00
|
|
|
ModalMessageBox::critical(this, tr("Error"),
|
|
|
|
tr("Invalid input for the field \"%1\"").arg(field));
|
2017-10-03 16:43:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
bool instruction = m_instruction_bp->isChecked();
|
|
|
|
bool ranged = m_memory_use_range->isChecked();
|
|
|
|
|
|
|
|
// Triggers
|
|
|
|
bool on_read = m_memory_on_read->isChecked() || m_memory_on_read_and_write->isChecked();
|
|
|
|
bool on_write = m_memory_on_write->isChecked() || m_memory_on_read_and_write->isChecked();
|
|
|
|
|
|
|
|
// Actions
|
2020-07-06 22:16:32 +00:00
|
|
|
bool do_log = m_do_log->isChecked() || m_do_log_and_break->isChecked();
|
|
|
|
bool do_break = m_do_break->isChecked() || m_do_log_and_break->isChecked();
|
2017-10-03 16:43:44 +00:00
|
|
|
|
|
|
|
bool good;
|
|
|
|
|
|
|
|
if (instruction)
|
|
|
|
{
|
|
|
|
u32 address = m_instruction_address->text().toUInt(&good, 16);
|
|
|
|
|
|
|
|
if (!good)
|
|
|
|
{
|
2018-01-21 15:25:58 +00:00
|
|
|
invalid_input(tr("Address"));
|
2017-10-03 16:43:44 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2020-12-16 23:40:20 +00:00
|
|
|
const QString condition = m_instruction_condition->text().trimmed();
|
|
|
|
|
|
|
|
if (!condition.isEmpty() && !Expression::TryParse(condition.toUtf8().constData()))
|
|
|
|
{
|
|
|
|
invalid_input(tr("Condition"));
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
m_parent->AddBP(address, false, do_break, do_log, condition);
|
2017-10-03 16:43:44 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
u32 from = m_memory_address_from->text().toUInt(&good, 16);
|
|
|
|
|
|
|
|
if (!good)
|
|
|
|
{
|
2018-01-21 15:25:58 +00:00
|
|
|
invalid_input(ranged ? tr("From") : tr("Address"));
|
2017-10-03 16:43:44 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (ranged)
|
|
|
|
{
|
|
|
|
u32 to = m_memory_address_to->text().toUInt(&good, 16);
|
|
|
|
if (!good)
|
|
|
|
{
|
2018-01-21 15:25:58 +00:00
|
|
|
invalid_input(tr("To"));
|
2017-10-03 16:43:44 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
m_parent->AddRangedMBP(from, to, on_read, on_write, do_log, do_break);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
m_parent->AddAddressMBP(from, on_read, on_write, do_log, do_break);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
QDialog::accept();
|
|
|
|
}
|
2022-10-08 20:23:24 +00:00
|
|
|
|
2022-11-21 04:11:15 +00:00
|
|
|
void BreakpointDialog::ShowConditionHelp()
|
2022-10-08 20:23:24 +00:00
|
|
|
{
|
|
|
|
const auto message = QStringLiteral(
|
|
|
|
"Set a code breakpoint for when an instruction is executed. Use with the code widget.\n"
|
|
|
|
"\n"
|
|
|
|
"Conditions:\n"
|
|
|
|
"Sets an expression that is evaluated when a breakpoint is hit. If the expression is false "
|
|
|
|
"or 0, the breakpoint is ignored until hit again. Statements should be separated by a comma. "
|
|
|
|
"Only the last statement will be used to determine what to do.\n"
|
|
|
|
"\n"
|
|
|
|
"Registers that can be referenced:\n"
|
|
|
|
"GPRs : r0..r31\n"
|
|
|
|
"FPRs : f0..f31\n LR, CTR, PC\n"
|
|
|
|
"\n"
|
|
|
|
"Functions:\n"
|
|
|
|
"Set a register: r1 = 8\n"
|
|
|
|
"Casts: s8(0xff). Available: s8, u8, s16, u16, s32, u32\n"
|
|
|
|
"Read Memory: read_u32(0x80000000). Available: u8, s8, u16, s16, u32, s32, f32, f64\n"
|
|
|
|
"Write Memory: write_u32(r3, 0x80000000). Available: u8, u16, u32, f32, f64\n"
|
|
|
|
"*currently writing will always be triggered\n"
|
|
|
|
"\n"
|
|
|
|
"Operations:\n"
|
|
|
|
"Unary: -u, !u, ~u\n"
|
|
|
|
"Math: * / + -, power: **, remainder: %, shift: <<, >>\n"
|
|
|
|
"Compare: <, <=, >, >=, ==, !=, &&, ||\n"
|
|
|
|
"Bitwise: &, |, ^\n"
|
|
|
|
"\n"
|
|
|
|
"Examples:\n"
|
|
|
|
"r4 == 1\n"
|
|
|
|
"f0 == 1.0 && f2 < 10.0\n"
|
|
|
|
"r26 <= r0 && ((r5 + 3) & -4) * ((r6 + 3) & -4)* 4 > r0\n"
|
|
|
|
"p = r3 + 0x8, p == 0x8003510 && read_u32(p) != 0\n"
|
|
|
|
"Write and break: r4 = 8, 1\n"
|
|
|
|
"Write and continue: f3 = f1 + f2, 0\n"
|
2022-10-08 21:54:10 +00:00
|
|
|
"The condition must always be last\n\n"
|
|
|
|
"All variables will be printed in the Memory Interface log, if there's a hit or a NaN "
|
|
|
|
"result. To check for issues, assign a variable to your equation, so it can be printed.\n\n"
|
|
|
|
"Note: All values are internally converted to Doubles for calculations. It's possible for "
|
|
|
|
"them to go out of range or to become NaN. A warning will be given if NaN is returned, and "
|
|
|
|
"the var that became NaN will be logged.");
|
2022-10-08 20:23:24 +00:00
|
|
|
ModalMessageBox::information(this, tr("Conditional help"), message);
|
|
|
|
}
|