Skip to content

Commit 46e6382

Browse files
committed
Added type formatters for the LLDB debuggers (e.g. Xcode, Android Studio) (#8950)
1 parent 087fbf0 commit 46e6382

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

docs/CHANGELOG.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ Other Changes:
4545

4646
- IO: added ImGuiPlatformIO::ClearPlatformHandlers(), ClearRendererHandlers()
4747
helpers to null all handlers. (#8945, #2769)
48+
- Misc: Debuggers: added type formatters for the LLDB debuggers (e.g. Xcode,
49+
Android Studio & more) to provide nicer display for ImVec2, ImVec4, ImVector etc.
50+
See misc/debuggers/ for details. (#8950) [@mentlerd]
4851
- Backends: all backends call ImGuiPlatformIO::ClearPlatformHandlers() and
4952
ClearRendererHandlers() on shutdown, so as not to leave function pointers
5053
which may be dangling when using backend in e.g. DLL. (#8945, #2769)

misc/README.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ misc/cpp/
44
This is also an example of how you may wrap your own similar types.
55

66
misc/debuggers/
7-
Helper files for popular debuggers.
8-
With the .natvis file, types like ImVector<> will be displayed nicely in Visual Studio debugger.
7+
Helper files for popular debuggers (Visual Studio, GDB, LLDB).
8+
e.g. With the .natvis file, types like ImVector<> will be displayed nicely in Visual Studio debugger.
99

1010
misc/fonts/
1111
Fonts loading/merging instructions (e.g. How to handle glyph ranges, how to merge icons fonts).

misc/debuggers/README.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ imgui.natvis
1515
(read comments inside file for details)
1616

1717
imgui_lldb.py
18-
LLDB: synthetic children provider and summaries for Dear ImGui types.
18+
LLDB-based debuggers (*): synthetic children provider and summaries for Dear ImGui types.
1919
With this, types like ImVector<> will be displayed nicely in the debugger.
2020
(read comments inside file for details)
21+
(*) Xcode, Android Studio, may be used from VS Code, C++Builder, CLion, Eclipse etc.

misc/debuggers/imgui_lldb.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# This file implements synthetic children providers and summaries for various ImGui types for LLDB.
1+
# This file implements synthetic children providers and summaries for various Dear ImGui types for LLDB.
2+
# LLDB is used by Xcode, Android Studio, and may be used from VS Code, C++Builder, CLion, Eclipse etc.
3+
24
#
35
# Useful links/documentation related to the feature:
46
# - https://lldb.llvm.org/use/variable.html#summary-strings

0 commit comments

Comments
 (0)