Skip to content

Debug tools: new "Stack Tool" window, ShowIdStackToolWindow() #4631

Closed

Description

@ocornut

2023/09/24 : Renamed ShowStackToolWindow() to ShowIdStackToolWindow() as previous name was misleading.

Introducing the stack tool

(We've been using this internally as part of the unreleased automation feature but recently managed to redesign in a way allowing us to move it to the main library while not incurring significant cost.)

The tool run queries on hovered id to display details about individual components that were hashed to create an ID.
It helps both understanding the ID stack system and debugging potential ID collisions.

stack_tool_03b

stack_tool_03

Activity

  1. added 2 commits that reference this issue on Oct 6, 2021
  2. changed the title [-]New "Stack Tool" debugging tool, ShowStackToolWindow()[/-] [+]Debug tools: new "Stack Tool" window, ShowStackToolWindow()[/+] on Nov 4, 2022
  3. ocornut commented on Sep 11, 2023

    @ocornut
    OwnerAuthor

    Closing as this is now on Wiki and linked from many places:
    https://github.com/ocornut/imgui/wiki/Debug-Tools

  4. changed the title [-]Debug tools: new "Stack Tool" window, ShowStackToolWindow()[/-] [+]Debug tools: new "Stack Tool" window, ShowIdStackToolWindow()[/+] on Sep 26, 2023
  5. cfillion commented on Sep 27, 2023

    @cfillion
    Contributor

    "ID" is uppercase in other functions and types in the public API (ImGuiID, ImGuiTextureID, {Get,Push,Pop}ID, GetItemID, {Get,SetNext}WindowDockID, PushTextureID etc... exceptions being enums and some struct members).

    Shouldn't it be called ShowIDStackToolWindow for consistency?

  6. ocornut commented on Sep 27, 2023

    @ocornut
    OwnerAuthor

    You are right. I have pushed this change as c21278e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址