Added expressions support in debugger.

Persist debugger state.
This commit is contained in:
Martín Lucas Golini
2025-01-12 20:29:44 -03:00
parent 75ba896f80
commit 882e68542e
14 changed files with 559 additions and 119 deletions

View File

@@ -42,8 +42,8 @@ UIWidget* UIBreakpointsTableView::createCell( UIWidget* rowWidget, const ModelIn
return setupCell( widget, rowWidget, index );
} else if ( index.column() == BreakpointsModel::Remove ) {
auto cell = UITableView::createCell( rowWidget, index );
auto model = (const BreakpointsModel*)getModel();
cell->onClick( [model, index, this]( auto ) {
cell->onClick( [index, this]( auto ) {
auto model = getModel();
if ( onBreakpointRemove ) {
std::string filePath(
model
@@ -72,8 +72,11 @@ UIWidget* StatusDebuggerController::getWidget() {
}
UIWidget* StatusDebuggerController::createWidget() {
if ( nullptr == mContainer )
if ( nullptr == mContainer ) {
createContainer();
if ( onWidgetCreated )
onWidgetCreated( this, mContainer );
}
return mContainer;
}
@@ -93,6 +96,10 @@ UITreeView* StatusDebuggerController::getUIVariables() const {
return mUIVariables;
}
UITreeView* StatusDebuggerController::getUIExpressions() const {
return mUIExpressions;
}
UITabWidget* StatusDebuggerController::getUITabWidget() const {
return mUITabWidget;
}
@@ -214,6 +221,7 @@ void StatusDebuggerController::createContainer() {
mUIExpressions->setAutoColumnsWidth( true );
mUIExpressions->setFitAllColumnsToWidget( true );
mUIExpressions->setMainColumn( 1 );
}
} // namespace ecode