mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-23 08:06:11 +00:00
HackStudio: Support debugging variables with Enum types
Variables with enum types can now be both viewed and modified in the variables view!
This commit is contained in:
committed by
Andreas Kling
parent
a4f23429aa
commit
f958c693ee
@@ -71,7 +71,7 @@ DebugInfoWidget::DebugInfoWidget()
|
||||
auto* variable = static_cast<const DebugInfo::VariableInfo*>(index.internal_data());
|
||||
if (variable->location_type != DebugInfo::VariableInfo::LocationType::Address)
|
||||
return false;
|
||||
return variable->type.is_one_of("int", "bool");
|
||||
return variable->is_enum_type() || variable->type_name.is_one_of("int", "bool");
|
||||
};
|
||||
|
||||
m_variables_view->on_context_menu_request = [this, is_valid_index](auto& index, auto& event) {
|
||||
|
||||
Reference in New Issue
Block a user