Skip to content

Commit

Permalink
[debugger] Add tooltips to breakpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Feb 2, 2025
1 parent c4fd6a6 commit bbc7fbb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions platforms/shared/desktop/gui_debug_disassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,12 @@ static void draw_breakpoints(void)
ImGui::PopID();
continue;
}
if (ImGui::IsItemHovered())
{
ImGui::BeginTooltip();
ImGui::Text("Remove breakpoint");
ImGui::EndTooltip();
}

ImGui::PopID();

Expand All @@ -490,6 +496,12 @@ static void draw_breakpoints(void)
brk->enabled = !brk->enabled;
}
ImGui::PopID();
if (ImGui::IsItemHovered())
{
ImGui::BeginTooltip();
ImGui::Text(brk->enabled ? "Disable breakpoint" : "Enable breakpoint");
ImGui::EndTooltip();
}

ImGui::SameLine(); ImGui::TextColored(brk->enabled ? red : gray, "%s", k_breakpoint_types[brk->type]); ImGui::SameLine();

Expand Down

0 comments on commit bbc7fbb

Please sign in to comment.