Skip to content

Commit

Permalink
Add natstepfilter to skip over object allocators (dotnet#86418)
Browse files Browse the repository at this point in the history
VS 17.6 added support for natstepfilter in project files. Take advantage of it to skip over object allocators that we pretty much never want to step into.

I'm following up with some VS debugger people to see if there's any plans to allow embedding this in the PDB like natvis. Having this in the vcxproj helps the repro project, but doesn't help end user scenarios.
  • Loading branch information
MichalStrehovsky authored May 18, 2023
1 parent d0740fc commit 8c637de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<StepFilter xmlns="http://schemas.microsoft.com/vstudio/debugger/natstepfilter/2010">
<Function>
<Name>RhpNewFast|RhpNewFinalizable|RhpNewFastAlign8|RhpNewFastMisalign|RhpNewFinalizableAlign8|RhpNewArray|RhpNewArrayAlign8</Name>
<Action>NoStepInto</Action>
</Function>
</StepFilter>
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
</ItemGroup>
<ItemGroup>
<Natvis Include="$(NativeAotSourceRoot)\BuildIntegration\NativeAOT.natvis" />
<None Include="$(NativeAotSourceRoot)\BuildIntegration\NativeAOT.natstepfilter" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down

0 comments on commit 8c637de

Please sign in to comment.