MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / slotEvaluateWatchVariable

Method slotEvaluateWatchVariable

src/plugins/debugger/dap/dapdebugger.cpp:1187–1201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1185}
1186
1187void DAPDebugger::slotEvaluateWatchVariable()
1188{
1189 DDialog dialog;
1190 DLineEdit *edit = new DLineEdit(d->watchsView);
1191 dialog.setWindowTitle(tr("New Evaluator Expression"));
1192 dialog.setMessage(tr("Enter an expression to evaluate"));
1193 dialog.addContent(edit);
1194 dialog.insertButton(0, tr("Cancel"));
1195 dialog.insertButton(1, tr("Ok"));
1196
1197 if (dialog.exec() == 1) {
1198 QString expression = edit->text();
1199 evaluateWatchVariable(expression);
1200 }
1201}
1202
1203void DAPDebugger::slotRemoveEvaluator()
1204{

Callers

nothing calls this directly

Calls 4

addContentMethod · 0.80
setMessageMethod · 0.45
execMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected