Examples: Windows: Added 'misc/debuggers/imgui.natstepfilter' file to all Visual Studio projects. (#3038)

This commit is contained in:
ocornut 2023-03-15 17:09:03 +01:00
parent 8b6e021f35
commit 301c956039
32 changed files with 87 additions and 24 deletions

View File

@ -40,6 +40,8 @@ Breaking Changes:
Other changes: Other changes:
- Backends: OpenGL3: Fixed GL loader crash when GL_VERSION returns NULL. (#6154, #4445, #3530) - Backends: OpenGL3: Fixed GL loader crash when GL_VERSION returns NULL. (#6154, #4445, #3530)
- Examples: Windows: Added 'misc/debuggers/imgui.natstepfilter' file to all Visual Studio projects,
now that VS 2022 17.6 Preview 2 support adding Debug Step Filter spec files into projects.
- Examples: SDL3: Updated for latest WIP SDL3 branch. (#6243) - Examples: SDL3: Updated for latest WIP SDL3 branch. (#6243)

View File

@ -171,10 +171,11 @@
<ClInclude Include="..\..\backends\imgui_impl_allegro5.h" /> <ClInclude Include="..\..\backends\imgui_impl_allegro5.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
</ImportGroup> </ImportGroup>
</Project> </Project>

View File

@ -52,7 +52,10 @@
<ItemGroup> <ItemGroup>
<None Include="..\README.txt" /> <None Include="..\README.txt" />
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>sources</Filter> <Filter>imgui</Filter>
</None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None> </None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -172,6 +172,7 @@
<ClInclude Include="..\..\backends\imgui_impl_opengl2.h" /> <ClInclude Include="..\..\backends\imgui_impl_opengl2.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>

View File

@ -57,5 +57,8 @@
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>imgui</Filter> <Filter>imgui</Filter>
</None> </None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -173,10 +173,11 @@
<ClInclude Include="..\..\backends\imgui_impl_opengl3_loader.h" /> <ClInclude Include="..\..\backends\imgui_impl_opengl3_loader.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
</ImportGroup> </ImportGroup>
</Project> </Project>

View File

@ -60,5 +60,8 @@
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>imgui</Filter> <Filter>imgui</Filter>
</None> </None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -176,6 +176,7 @@
<ClInclude Include="..\..\backends\imgui_impl_vulkan.h" /> <ClInclude Include="..\..\backends\imgui_impl_vulkan.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>

View File

@ -57,5 +57,8 @@
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>imgui</Filter> <Filter>imgui</Filter>
</None> </None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -172,6 +172,7 @@
<ClInclude Include="..\..\backends\imgui_impl_opengl2.h" /> <ClInclude Include="..\..\backends\imgui_impl_opengl2.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>

View File

@ -55,7 +55,10 @@
<ItemGroup> <ItemGroup>
<None Include="..\README.txt" /> <None Include="..\README.txt" />
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>sources</Filter> <Filter>imgui</Filter>
</None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None> </None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -173,10 +173,11 @@
<ClInclude Include="..\..\backends\imgui_impl_dx11.h" /> <ClInclude Include="..\..\backends\imgui_impl_dx11.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
</ImportGroup> </ImportGroup>
</Project> </Project>

View File

@ -56,5 +56,8 @@
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>imgui</Filter> <Filter>imgui</Filter>
</None> </None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -172,10 +172,11 @@
<ClInclude Include="..\..\backends\imgui_impl_opengl2.h" /> <ClInclude Include="..\..\backends\imgui_impl_opengl2.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
</ImportGroup> </ImportGroup>
</Project> </Project>

View File

@ -57,5 +57,8 @@
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>imgui</Filter> <Filter>imgui</Filter>
</None> </None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -173,10 +173,11 @@
<ClInclude Include="..\..\backends\imgui_impl_opengl3_loader.h" /> <ClInclude Include="..\..\backends\imgui_impl_opengl3_loader.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
</ImportGroup> </ImportGroup>
</Project> </Project>

View File

@ -60,5 +60,8 @@
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>imgui</Filter> <Filter>imgui</Filter>
</None> </None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -172,10 +172,11 @@
<ClInclude Include="..\..\backends\imgui_impl_sdlrenderer.h" /> <ClInclude Include="..\..\backends\imgui_impl_sdlrenderer.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
</ImportGroup> </ImportGroup>
</Project> </Project>

View File

@ -57,5 +57,8 @@
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>imgui</Filter> <Filter>imgui</Filter>
</None> </None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -176,10 +176,11 @@
<ClInclude Include="..\..\backends\imgui_impl_vulkan.h" /> <ClInclude Include="..\..\backends\imgui_impl_vulkan.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
</ImportGroup> </ImportGroup>
</Project> </Project>

View File

@ -57,5 +57,8 @@
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>imgui</Filter> <Filter>imgui</Filter>
</None> </None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -173,10 +173,11 @@
<ClInclude Include="..\..\backends\imgui_impl_opengl3_loader.h" /> <ClInclude Include="..\..\backends\imgui_impl_opengl3_loader.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
</ImportGroup> </ImportGroup>
</Project> </Project>

View File

@ -60,5 +60,8 @@
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>imgui</Filter> <Filter>imgui</Filter>
</None> </None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -162,6 +162,7 @@
<ClCompile Include="main.cpp" /> <ClCompile Include="main.cpp" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>

View File

@ -56,5 +56,8 @@
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>imgui</Filter> <Filter>imgui</Filter>
</None> </None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -161,6 +161,7 @@
<ClCompile Include="main.cpp" /> <ClCompile Include="main.cpp" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>

View File

@ -56,5 +56,8 @@
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>imgui</Filter> <Filter>imgui</Filter>
</None> </None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -164,6 +164,7 @@
<ClCompile Include="main.cpp" /> <ClCompile Include="main.cpp" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -53,6 +53,9 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\README.txt" /> <None Include="..\README.txt" />
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Natvis Include="..\..\misc\debuggers\imgui.natvis"> <Natvis Include="..\..\misc\debuggers\imgui.natvis">

View File

@ -162,6 +162,7 @@
<ClInclude Include="..\..\backends\imgui_impl_win32.h" /> <ClInclude Include="..\..\backends\imgui_impl_win32.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\misc\debuggers\imgui.natstepfilter" />
<None Include="..\..\misc\debuggers\imgui.natvis" /> <None Include="..\..\misc\debuggers\imgui.natvis" />
<None Include="..\README.txt" /> <None Include="..\README.txt" />
</ItemGroup> </ItemGroup>

View File

@ -57,5 +57,8 @@
<None Include="..\..\misc\debuggers\imgui.natvis"> <None Include="..\..\misc\debuggers\imgui.natvis">
<Filter>imgui</Filter> <Filter>imgui</Filter>
</None> </None>
<None Include="..\..\misc\debuggers\imgui.natstepfilter">
<Filter>imgui</Filter>
</None>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -3,14 +3,15 @@
.natstepfilter file for Visual Studio debugger. .natstepfilter file for Visual Studio debugger.
Purpose: instruct debugger to skip some functions when using StepInto (F11) Purpose: instruct debugger to skip some functions when using StepInto (F11)
To enable: Since Visual Studio 2022 version 17.6 Preview 2 (currently available as a "Preview" build on March 14, 2023)
It is possible to add the .natstepfilter file to your project file and it will automatically be used.
(https://developercommunity.visualstudio.com/t/allow-natstepfilter-and-natjmc-to-be-included-as-p/561718)
For older Visual Studio version prior to 2022 17.6 Preview 2:
* copy in %USERPROFILE%\Documents\Visual Studio XXXX\Visualizers (current user) * copy in %USERPROFILE%\Documents\Visual Studio XXXX\Visualizers (current user)
* or copy in %VsInstallDirectory%\Common7\Packages\Debugger\Visualizers (all users) * 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). If you have multiple VS version installed, the version that matters is the one you are using the IDE/debugger
This is supported since Visual Studio 2012. 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 More information at: https://docs.microsoft.com/en-us/visualstudio/debugger/just-my-code?view=vs-2019#BKMK_C___Just_My_Code
--> -->