-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Misc: added imgui.gdb and imgui.natstepfilter debugger helpers for gd…
…b and msvc.
- Loading branch information
Showing
6 changed files
with
63 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
|
||
HELPER FILES FOR POPULAR DEBUGGERS | ||
|
||
imgui.gdb | ||
GDB: disable stepping into trivial functions. | ||
(read comments inside file for details) | ||
|
||
imgui.natstepfilter | ||
Visual Studio Debugger: disable stepping into trivial functions. | ||
(read comments inside file for details) | ||
|
||
imgui.natvis | ||
Natvis file to describe dear imgui types in the Visual Studio debugger. | ||
Visual Studio Debugger: describe Dear ImGui types for better display. | ||
With this, types like ImVector<> will be displayed nicely in the debugger. | ||
You can include this easily in your Visual Studio project files. | ||
(read comments inside file for details) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# GDB configuration to aid debugging experience | ||
|
||
# To enable these customizations edit $HOME/.gdbinit (or ./.gdbinit if local gdbinit is enabled) and add: | ||
# add-auto-load-safe-path /path/to/imgui.gdb | ||
# source /path/to/imgui.gdb | ||
# | ||
# More Information at: | ||
# * https://sourceware.org/gdb/current/onlinedocs/gdb/gdbinit-man.html | ||
# * https://sourceware.org/gdb/current/onlinedocs/gdb/Init-File-in-the-Current-Directory.html#Init-File-in-the-Current-Directory | ||
|
||
# Disable stepping into trivial functions | ||
skip -rfunction Im(Vec2|Vec4|Strv|Vector|Span)::.+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
.natstepfilter file for Visual Studio debugger. | ||
Purpose: instruct debugger to skip some functions when using StepInto (F11) | ||
To enable: | ||
* copy in %USERPROFILE%\Documents\Visual Studio XXXX\Visualizers (current user) | ||
* or copy in %VsInstallDirectory%\Common7\Packages\Debugger\Visualizers (all users) | ||
If you have multiple VS version installed, the version that matters is the one you are using the IDE/debugger of (not the compiling toolset). | ||
This is supported since Visual Studio 2012. | ||
Unfortunately, unlike .natvis files, it isn't yet possible to include this file in your project :( | ||
You may upvote this: https://developercommunity.visualstudio.com/t/allow-natstepfilter-and-natjmc-to-be-included-as-p/561718 | ||
More information at: https://docs.microsoft.com/en-us/visualstudio/debugger/just-my-code?view=vs-2019#BKMK_C___Just_My_Code | ||
--> | ||
|
||
<StepFilter xmlns="http://schemas.microsoft.com/vstudio/debugger/natstepfilter/2010"> | ||
|
||
<!-- Disable stepping into trivial functions --> | ||
<Function> | ||
<Name>(ImVec2|ImVec4|ImStrv)::.+</Name> | ||
<Action>NoStepInto</Action> | ||
</Function> | ||
<Function> | ||
<Name>(ImVector|ImSpan).*::operator.+</Name> | ||
<Action>NoStepInto</Action> | ||
</Function> | ||
|
||
</StepFilter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters