-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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: "Item Picker", "Show window rectangles" #2673
Comments
Item Picker: |
…e it doesn't work on non-ItemHoverable() items anyway. (#2673) Call stack difference not meaningful.
I have promoted I have also added the Item Picker option to Demo->Tools BUT it is greyed out if |
Closing this now. |
Update 2024
io.ConfigDebugIsDebuggerPresent
is not set. This is partly to promote the discovery of both the item picker and theio.ConfigDebugIsDebuggerPresent
option.Metrics->Tools
.FYI
Recently added some tools in the Metrics window.
(1)
The "Item Picker" will allow you to pick an item and have dear imgui break within the call-stack of that item. This is useful if you have large UI / codebase and you would to easily find out where some UI item is emitted. This only works on item that are hoverable and have an identifier, so e.g. raw
ImGui::Text()
items won't work.This will call
IM_DEBUG_BREAK()
which for Clang and Visual Studio default to a nice debugger break, for other compiles default to an unsatisfyingIM_ASSERT(0)
(can improve!). You can always#define IM_DEBUG_BREAK
to anything in imconfig.h. See commit: 130b449(2)
![image](https://user-images.githubusercontent.com/8225057/61412866-e31ae300-a89e-11e9-8170-1fedd64b7514.png)
The "Show windows rectangles" tool allows you to visualize various rectangles which purpose may otherwise be difficult to understand. If you need to work within dear imgui codebase this can be useful to clarify what's going on.
The text was updated successfully, but these errors were encountered: