mirror of
https://github.com/ocornut/imgui.git
synced 2026-03-29 00:10:00 -05:00
Updated Debug Tools (markdown)
@@ -2,6 +2,8 @@
|
||||
|
||||
### Debug Configuration Flags
|
||||
|
||||

|
||||
|
||||
Runtime flags available in `ImGuiIO` (and exposed in Demo->Configuration):
|
||||
```cpp
|
||||
// Tools to test correct Begin/End and BeginChild/EndChild behaviors.
|
||||
@@ -20,13 +22,11 @@ bool ConfigDebugIgnoreFocusLoss; // Ignore io.AddFocusEvent(false), consequ
|
||||
bool ConfigDebugIniSettings; // Save .ini data with extra comments (particularly helpful for Docking, but makes saving slower)
|
||||
```
|
||||
|
||||
|
||||
### Metrics/Debugger window
|
||||
|
||||
Many internal state and tools are exposed in the Metrics window. To access the Metrics window:
|
||||
- Call `ShowMetricsWindow()`.
|
||||
- Or from the Demo window you can find it in the Tools menu.
|
||||
They will help you understand how Dear ImGui works, and can help you diagnose problems.
|
||||
Access the Metrics/Debugger window via `Demo->Tools->Metrics/Debugger` or by calling `ShowMetricsWindow()` from your code.
|
||||
|
||||
Many internal state and tools are exposed in the Metrics window. They will help you understand how Dear ImGui works, and can help you diagnose many problems.
|
||||
|
||||

|
||||
|
||||
@@ -37,10 +37,23 @@ _Some of the debug tools_
|
||||
|
||||
### Debug Log
|
||||
|
||||
https://github.com/ocornut/imgui/issues/5855
|
||||
Access the Debug Log window via `Demo->Tools->Debug Log` or `Metrics->Tools->Debug Log` or by calling `ShowDebugLogWindow()`. Also see [#5855](https://github.com/ocornut/imgui/issues/5855).
|
||||
|
||||
It has options to enable logging of variety of events.
|
||||
Useful e.g.:
|
||||
- You have issue with focus or active id being taken away.
|
||||
- You have issue with popup closing.
|
||||
- You have issue with windows being undocked.
|
||||
- You want to visualize submitted input events.
|
||||
- You want to visualize clipper steps etc.
|
||||
- etc.
|
||||
|
||||

|
||||
|
||||
Inside the log, if you hover an ImGuiID identifier (formatted as `0xXXXXXXXX`) it will automatically attempt to visually locate the item if the item still exists:
|
||||
|
||||

|
||||
|
||||
### Stack Tool
|
||||
|
||||
https://github.com/ocornut/imgui/issues/4631
|
||||
|
||||
Reference in New Issue
Block a user