diff --git a/CHANGELOG.md b/CHANGELOG.md index d50dc5b..efde751 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ the next time the Debug dialog is used. Kind of a default project. * RR: When using the Debug dialog, check a couple standard locations for the RR trace directory. +* ObjectiveC: Add support for printing ObjectiveC object via a '(objc)' pretext. ## [2.5] - 2024-12-24 * Console now supports a subset of ANSI color codes. diff --git a/src/SeerEditorWidgetSourceAreas.cpp b/src/SeerEditorWidgetSourceAreas.cpp index e7deed3..53b94d6 100644 --- a/src/SeerEditorWidgetSourceAreas.cpp +++ b/src/SeerEditorWidgetSourceAreas.cpp @@ -986,28 +986,28 @@ void SeerEditorWidgetSourceArea::showContextMenu (const QPoint& pos, const QPoin openExternalEditor->setEnabled(true); } - addVariableLoggerExpressionAction = new QAction(QString("\"%1\"").arg(textCursor().selectedText())); - addVariableLoggerAsteriskExpressionAction = new QAction(QString("\"*%1\"").arg(textCursor().selectedText())); - addVariableLoggerAmpersandExpressionAction = new QAction(QString("\"&&%1\"").arg(textCursor().selectedText())); - addVariableLoggerAsteriskAmpersandExpressionAction = new QAction(QString("\"*&&%1\"").arg(textCursor().selectedText())); - addVariableLoggerObjcExpressionAction = new QAction(QString("\"(objc)%1\"").arg(textCursor().selectedText())); - addVariableTrackerExpressionAction = new QAction(QString("\"%1\"").arg(textCursor().selectedText())); - addVariableTrackerAsteriskExpressionAction = new QAction(QString("\"*%1\"").arg(textCursor().selectedText())); - addVariableTrackerAmpersandExpressionAction = new QAction(QString("\"&&%1\"").arg(textCursor().selectedText())); - addVariableTrackerAsteriskAmpersandExpressionAction = new QAction(QString("\"*&&%1\"").arg(textCursor().selectedText())); - addVariableTrackerObjcExpressionAction = new QAction(QString("\"(objc)%1\"").arg(textCursor().selectedText())); - addMemoryVisualizerAction = new QAction(QString("\"%1\"").arg(textCursor().selectedText())); - addMemoryAsteriskVisualizerAction = new QAction(QString("\"*%1\"").arg(textCursor().selectedText())); - addMemoryAmpersandVisualizerAction = new QAction(QString("\"&&%1\"").arg(textCursor().selectedText())); - addArrayVisualizerAction = new QAction(QString("\"%1\"").arg(textCursor().selectedText())); - addArrayAsteriskVisualizerAction = new QAction(QString("\"*%1\"").arg(textCursor().selectedText())); - addArrayAmpersandVisualizerAction = new QAction(QString("\"&&%1\"").arg(textCursor().selectedText())); - addMatrixVisualizerAction = new QAction(QString("\"%1\"").arg(textCursor().selectedText())); - addMatrixAsteriskVisualizerAction = new QAction(QString("\"*%1\"").arg(textCursor().selectedText())); - addMatrixAmpersandVisualizerAction = new QAction(QString("\"&&%1\"").arg(textCursor().selectedText())); - addStructVisualizerAction = new QAction(QString("\"%1\"").arg(textCursor().selectedText())); - addStructAsteriskVisualizerAction = new QAction(QString("\"*%1\"").arg(textCursor().selectedText())); - addStructAmpersandVisualizerAction = new QAction(QString("\"&&%1\"").arg(textCursor().selectedText())); + addVariableLoggerExpressionAction = new QAction(QString("%1").arg(textCursor().selectedText())); + addVariableLoggerAsteriskExpressionAction = new QAction(QString("*%1").arg(textCursor().selectedText())); + addVariableLoggerAmpersandExpressionAction = new QAction(QString("&&%1").arg(textCursor().selectedText())); + addVariableLoggerAsteriskAmpersandExpressionAction = new QAction(QString("*&&%1").arg(textCursor().selectedText())); + addVariableLoggerObjcExpressionAction = new QAction(QString("(objc)%1").arg(textCursor().selectedText())); + addVariableTrackerExpressionAction = new QAction(QString("%1").arg(textCursor().selectedText())); + addVariableTrackerAsteriskExpressionAction = new QAction(QString("*%1").arg(textCursor().selectedText())); + addVariableTrackerAmpersandExpressionAction = new QAction(QString("&&%1").arg(textCursor().selectedText())); + addVariableTrackerAsteriskAmpersandExpressionAction = new QAction(QString("*&&%1").arg(textCursor().selectedText())); + addVariableTrackerObjcExpressionAction = new QAction(QString("(objc)%1").arg(textCursor().selectedText())); + addMemoryVisualizerAction = new QAction(QString("%1").arg(textCursor().selectedText())); + addMemoryAsteriskVisualizerAction = new QAction(QString("*%1").arg(textCursor().selectedText())); + addMemoryAmpersandVisualizerAction = new QAction(QString("&&%1").arg(textCursor().selectedText())); + addArrayVisualizerAction = new QAction(QString("%1").arg(textCursor().selectedText())); + addArrayAsteriskVisualizerAction = new QAction(QString("*%1").arg(textCursor().selectedText())); + addArrayAmpersandVisualizerAction = new QAction(QString("&&%1").arg(textCursor().selectedText())); + addMatrixVisualizerAction = new QAction(QString("%1").arg(textCursor().selectedText())); + addMatrixAsteriskVisualizerAction = new QAction(QString("*%1").arg(textCursor().selectedText())); + addMatrixAmpersandVisualizerAction = new QAction(QString("&&%1").arg(textCursor().selectedText())); + addStructVisualizerAction = new QAction(QString("%1").arg(textCursor().selectedText())); + addStructAsteriskVisualizerAction = new QAction(QString("*%1").arg(textCursor().selectedText())); + addStructAmpersandVisualizerAction = new QAction(QString("&&%1").arg(textCursor().selectedText())); QMenu menu("Breakpoints", this); menu.setTitle("Breakpoints"); diff --git a/src/SeerStackArgumentsBrowserWidget.cpp b/src/SeerStackArgumentsBrowserWidget.cpp index 4a7255c..f04bee6 100644 --- a/src/SeerStackArgumentsBrowserWidget.cpp +++ b/src/SeerStackArgumentsBrowserWidget.cpp @@ -206,28 +206,28 @@ void SeerStackArgumentsBrowserWidget::handleContextMenu (const QPoint& pos) { QAction* addStructAsteriskVisualizerAction; QAction* addStructAmpersandVisualizerAction; - addVariableLoggerExpressionAction = new QAction(QString("\"%1\"").arg(item->text(1))); - addVariableLoggerAsteriskExpressionAction = new QAction(QString("\"*%1\"").arg(item->text(1))); - addVariableLoggerAmpersandExpressionAction = new QAction(QString("\"&&%1\"").arg(item->text(1))); - addVariableLoggerAsteriskAmpersandExpressionAction = new QAction(QString("\"*&&%1\"").arg(item->text(1))); - addVariableLoggerObjcExpressionAction = new QAction(QString("\"(objc)%1\"").arg(item->text(0))); - addVariableTrackerExpressionAction = new QAction(QString("\"%1\"").arg(item->text(1))); - addVariableTrackerAsteriskExpressionAction = new QAction(QString("\"*%1\"").arg(item->text(1))); - addVariableTrackerAmpersandExpressionAction = new QAction(QString("\"&&%1\"").arg(item->text(1))); - addVariableTrackerAsteriskAmpersandExpressionAction = new QAction(QString("\"*&&%1\"").arg(item->text(1))); - addVariableTrackerObjcExpressionAction = new QAction(QString("\"(objc)%1\"").arg(item->text(0))); - addMemoryVisualizerAction = new QAction(QString("\"%1\"").arg(item->text(1))); - addMemoryAsteriskVisualizerAction = new QAction(QString("\"*%1\"").arg(item->text(1))); - addMemoryAmpersandVisualizerAction = new QAction(QString("\"&&%1\"").arg(item->text(1))); - addArrayVisualizerAction = new QAction(QString("\"%1\"").arg(item->text(1))); - addArrayAsteriskVisualizerAction = new QAction(QString("\"*%1\"").arg(item->text(1))); - addArrayAmpersandVisualizerAction = new QAction(QString("\"&&%1\"").arg(item->text(1))); - addMatrixVisualizerAction = new QAction(QString("\"%1\"").arg(item->text(1))); - addMatrixAsteriskVisualizerAction = new QAction(QString("\"*%1\"").arg(item->text(1))); - addMatrixAmpersandVisualizerAction = new QAction(QString("\"&&%1\"").arg(item->text(1))); - addStructVisualizerAction = new QAction(QString("\"%1\"").arg(item->text(1))); - addStructAsteriskVisualizerAction = new QAction(QString("\"*%1\"").arg(item->text(1))); - addStructAmpersandVisualizerAction = new QAction(QString("\"&&%1\"").arg(item->text(1))); + addVariableLoggerExpressionAction = new QAction(QString("%1").arg(item->text(1))); + addVariableLoggerAsteriskExpressionAction = new QAction(QString("*%1").arg(item->text(1))); + addVariableLoggerAmpersandExpressionAction = new QAction(QString("&&%1").arg(item->text(1))); + addVariableLoggerAsteriskAmpersandExpressionAction = new QAction(QString("*&&%1").arg(item->text(1))); + addVariableLoggerObjcExpressionAction = new QAction(QString("(objc)%1").arg(item->text(0))); + addVariableTrackerExpressionAction = new QAction(QString("%1").arg(item->text(1))); + addVariableTrackerAsteriskExpressionAction = new QAction(QString("*%1").arg(item->text(1))); + addVariableTrackerAmpersandExpressionAction = new QAction(QString("&&%1").arg(item->text(1))); + addVariableTrackerAsteriskAmpersandExpressionAction = new QAction(QString("*&&%1").arg(item->text(1))); + addVariableTrackerObjcExpressionAction = new QAction(QString("(objc)%1").arg(item->text(0))); + addMemoryVisualizerAction = new QAction(QString("%1").arg(item->text(1))); + addMemoryAsteriskVisualizerAction = new QAction(QString("*%1").arg(item->text(1))); + addMemoryAmpersandVisualizerAction = new QAction(QString("&&%1").arg(item->text(1))); + addArrayVisualizerAction = new QAction(QString("%1").arg(item->text(1))); + addArrayAsteriskVisualizerAction = new QAction(QString("*%1").arg(item->text(1))); + addArrayAmpersandVisualizerAction = new QAction(QString("&&%1").arg(item->text(1))); + addMatrixVisualizerAction = new QAction(QString("%1").arg(item->text(1))); + addMatrixAsteriskVisualizerAction = new QAction(QString("*%1").arg(item->text(1))); + addMatrixAmpersandVisualizerAction = new QAction(QString("&&%1").arg(item->text(1))); + addStructVisualizerAction = new QAction(QString("%1").arg(item->text(1))); + addStructAsteriskVisualizerAction = new QAction(QString("*%1").arg(item->text(1))); + addStructAmpersandVisualizerAction = new QAction(QString("&&%1").arg(item->text(1))); QMenu menu("Visualizers", this); menu.setTitle("Visualizers"); diff --git a/src/SeerStackLocalsBrowserWidget.cpp b/src/SeerStackLocalsBrowserWidget.cpp index 2ad5548..9573b67 100644 --- a/src/SeerStackLocalsBrowserWidget.cpp +++ b/src/SeerStackLocalsBrowserWidget.cpp @@ -174,28 +174,28 @@ void SeerStackLocalsBrowserWidget::handleContextMenu (const QPoint& pos) { QAction* addStructAsteriskVisualizerAction; QAction* addStructAmpersandVisualizerAction; - addVariableLoggerExpressionAction = new QAction(QString("\"%1\"").arg(item->text(0))); - addVariableLoggerAsteriskExpressionAction = new QAction(QString("\"*%1\"").arg(item->text(0))); - addVariableLoggerAmpersandExpressionAction = new QAction(QString("\"&&%1\"").arg(item->text(0))); - addVariableLoggerAsteriskAmpersandExpressionAction = new QAction(QString("\"*&&%1\"").arg(item->text(0))); - addVariableLoggerObjcExpressionAction = new QAction(QString("\"(objc)%1\"").arg(item->text(0))); - addVariableTrackerExpressionAction = new QAction(QString("\"%1\"").arg(item->text(0))); - addVariableTrackerAsteriskExpressionAction = new QAction(QString("\"*%1\"").arg(item->text(0))); - addVariableTrackerAmpersandExpressionAction = new QAction(QString("\"&&%1\"").arg(item->text(0))); - addVariableTrackerAsteriskAmpersandExpressionAction = new QAction(QString("\"*&&%1\"").arg(item->text(0))); - addVariableTrackerObjcExpressionAction = new QAction(QString("\"(objc)%1\"").arg(item->text(0))); - addMemoryVisualizerAction = new QAction(QString("\"%1\"").arg(item->text(0))); - addMemoryAsteriskVisualizerAction = new QAction(QString("\"*%1\"").arg(item->text(0))); - addMemoryAmpersandVisualizerAction = new QAction(QString("\"&&%1\"").arg(item->text(0))); - addArrayVisualizerAction = new QAction(QString("\"%1\"").arg(item->text(0))); - addArrayAsteriskVisualizerAction = new QAction(QString("\"*%1\"").arg(item->text(0))); - addArrayAmpersandVisualizerAction = new QAction(QString("\"&&%1\"").arg(item->text(0))); - addMatrixVisualizerAction = new QAction(QString("\"%1\"").arg(item->text(0))); - addMatrixAsteriskVisualizerAction = new QAction(QString("\"*%1\"").arg(item->text(0))); - addMatrixAmpersandVisualizerAction = new QAction(QString("\"&&%1\"").arg(item->text(0))); - addStructVisualizerAction = new QAction(QString("\"%1\"").arg(item->text(0))); - addStructAsteriskVisualizerAction = new QAction(QString("\"*%1\"").arg(item->text(0))); - addStructAmpersandVisualizerAction = new QAction(QString("\"&&%1\"").arg(item->text(0))); + addVariableLoggerExpressionAction = new QAction(QString("%1").arg(item->text(0))); + addVariableLoggerAsteriskExpressionAction = new QAction(QString("*%1").arg(item->text(0))); + addVariableLoggerAmpersandExpressionAction = new QAction(QString("&&%1").arg(item->text(0))); + addVariableLoggerAsteriskAmpersandExpressionAction = new QAction(QString("*&&%1").arg(item->text(0))); + addVariableLoggerObjcExpressionAction = new QAction(QString("(objc)%1").arg(item->text(0))); + addVariableTrackerExpressionAction = new QAction(QString("%1").arg(item->text(0))); + addVariableTrackerAsteriskExpressionAction = new QAction(QString("*%1").arg(item->text(0))); + addVariableTrackerAmpersandExpressionAction = new QAction(QString("&&%1").arg(item->text(0))); + addVariableTrackerAsteriskAmpersandExpressionAction = new QAction(QString("*&&%1").arg(item->text(0))); + addVariableTrackerObjcExpressionAction = new QAction(QString("(objc)%1").arg(item->text(0))); + addMemoryVisualizerAction = new QAction(QString("%1").arg(item->text(0))); + addMemoryAsteriskVisualizerAction = new QAction(QString("*%1").arg(item->text(0))); + addMemoryAmpersandVisualizerAction = new QAction(QString("&&%1").arg(item->text(0))); + addArrayVisualizerAction = new QAction(QString("%1").arg(item->text(0))); + addArrayAsteriskVisualizerAction = new QAction(QString("*%1").arg(item->text(0))); + addArrayAmpersandVisualizerAction = new QAction(QString("&&%1").arg(item->text(0))); + addMatrixVisualizerAction = new QAction(QString("%1").arg(item->text(0))); + addMatrixAsteriskVisualizerAction = new QAction(QString("*%1").arg(item->text(0))); + addMatrixAmpersandVisualizerAction = new QAction(QString("&&%1").arg(item->text(0))); + addStructVisualizerAction = new QAction(QString("%1").arg(item->text(0))); + addStructAsteriskVisualizerAction = new QAction(QString("*%1").arg(item->text(0))); + addStructAmpersandVisualizerAction = new QAction(QString("&&%1").arg(item->text(0))); QMenu menu("Visualizers", this); menu.setTitle("Visualizers");