diff --git a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp index 17e70f58a1..3019399578 100644 --- a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp +++ b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp @@ -13,6 +13,7 @@ #include +#include #include #include #include @@ -1488,6 +1489,13 @@ VariablesView::MessageReceived(BMessage* message) if (language->ParseTypeExpression(typeExpression, fThread->GetTeam()->DebugInfo(), type) != B_OK) { + BString errorMessage; + errorMessage.SetToFormat("Failed to resolve type %s", + typeExpression.String(), strerror(result)); + BAlert* alert = new(std::nothrow) BAlert("Error", + errorMessage.String(), "Close"); + if (alert != NULL) + alert->Go(); break; }