Misc: added imgui.gdb and imgui.natstepfilter debugger helpers for gdb and msvc.
parent
033dfd9d35
commit
1bc6f82091
@ -1,7 +1,16 @@
|
|||||||
|
|
||||||
HELPER FILES FOR POPULAR DEBUGGERS
|
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
|
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.
|
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)
|
||||||
|
|
||||||
|
@ -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)::.+
|
@ -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>
|
Loading…
Reference in New Issue