You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debug tools: new "Stack Tool" window, ShowIdStackToolWindow() #4631
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.
changed the title [-]New "Stack Tool" debugging tool, ShowStackToolWindow()[/-][+]Debug tools: new "Stack Tool" window, ShowStackToolWindow()[/+]on Nov 4, 2022
changed the title [-]Debug tools: new "Stack Tool" window, ShowStackToolWindow()[/-][+]Debug tools: new "Stack Tool" window, ShowIdStackToolWindow()[/+]on Sep 26, 2023
"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?
Activity
Stack Tool: Added Stack Tool (ShowStackToolWindow() function and avai…
Stack Tool: Docs (#4631) + also prevent Metrics window from displayin…
Stack Tool: Added option to copy item path to clipboard. (#4631)
Stack Tool: Added option to copy item path to clipboard. (ocornut#4631)
[-]New "Stack Tool" debugging tool, ShowStackToolWindow()[/-][+]Debug tools: new "Stack Tool" window, ShowStackToolWindow()[/+]Debug Tools: Added DebugLocateItem()/DebugLocateItemOnHover() to visu…
ocornut commentedon Sep 11, 2023
Closing as this is now on Wiki and linked from many places:
https://github.com/ocornut/imgui/wiki/Debug-Tools
[-]Debug tools: new "Stack Tool" window, ShowStackToolWindow()[/-][+]Debug tools: new "Stack Tool" window, ShowIdStackToolWindow()[/+]Debug Tools: Renamed ShowStackToolWindow() ("Stack Tool") to ShowIdSt…
cfillion commentedon Sep 27, 2023
"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
ShowIDStackToolWindowfor consistency?ocornut commentedon Sep 27, 2023
You are right. I have pushed this change as c21278e.
Debug Tools: Rename ShowIdStackToolWindow() -> ShowIDStackToolWindow(…
Debug Tools: Rename ShowIdStackToolWindow() -> ShowIDStackToolWindow(…
Debug Tools: Rename ShowIdStackToolWindow() -> ShowIDStackToolWindow(…
Added io.ConfigDebugHighlightIdConflicts debug feature! (#7961, #7669)
Debug Tools: Tweaked layout of ID Stack Tool and always display full …
Debug Tools: ID Stack Tool: fixed using fixed-size buffers preventing…
Debug Tools: ID Stack Tool: added option to hex-encode non-ASCII char…
Debug Tools: ID Stack Tool: when ### is used, uncontributing prefix b…
Debug Tools: ID Stack Tool: fixed misleading/unnecessary run of Updat…
Debug Tools: ID Stack Tool: fixed a crash when using PushOverrideID(0…