Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ocornut opened this issue Oct 6, 2021 · 3 comments
Closed

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

ocornut opened this issue Oct 6, 2021 · 3 comments
Labels
label/id and id stack implicit identifiers, pushid(), id stack news/info

Comments

@ocornut
Copy link
Owner

ocornut commented Oct 6, 2021

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

@ocornut ocornut added news/info label/id and id stack implicit identifiers, pushid(), id stack labels Oct 6, 2021
ocornut added a commit that referenced this issue Oct 6, 2021
@ocornut ocornut changed the title New "Stack Tool" debugging tool, ShowStackToolWindow() Debug tools: new "Stack Tool" window, ShowStackToolWindow() Nov 4, 2022
ocornut added a commit that referenced this issue Nov 4, 2022
…ally locate items when hovering a 0xXXXXXXXX value. (#5855, #2673, #4631)
@ocornut
Copy link
Owner Author

ocornut commented Sep 11, 2023

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

@ocornut ocornut closed this as completed Sep 11, 2023
@ocornut ocornut changed the title Debug tools: new "Stack Tool" window, ShowStackToolWindow() Debug tools: new "Stack Tool" window, ShowIdStackToolWindow() Sep 26, 2023
ocornut added a commit that referenced this issue Sep 26, 2023
@cfillion
Copy link
Contributor

cfillion commented 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 ShowIDStackToolWindow for consistency?

@ocornut
Copy link
Owner Author

ocornut commented Sep 27, 2023

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
Labels
label/id and id stack implicit identifiers, pushid(), id stack news/info
Projects
None yet
Development

No branches or pull requests

2 participants