mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09: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:
parent
a4f23429aa
commit
f958c693ee
Notes:
sideshowbarker
2024-07-19 05:52:35 +09:00
Author: https://github.com/FalseHonesty
Commit: f958c693ee
Pull-request: https://github.com/SerenityOS/serenity/pull/2469
3 changed files with 41 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue