禁止vs2015 debug时跳转到STL中 Not step into


打开下面这个文件。注意这个文件是只读文件,需要先去掉只读属性才能修改
  1. C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Packages\Debugger\Visualizers\default.natstepfilter

之前插入一行 std::.*NoStepInto
也就是将
  1. <?xml version="1.0" encoding="utf-8"?> __security_check_cookieNoStepInto __abi_winrt_.*NoStepInto _ObjectStublessClient.*NoStepInto _Invoke@12NoStepInto _RTC_Check(Esp|StackVars)NoStepInto _chkstkNoStepInto ATL::CComPtrBase.*::operator&NoStepInto ATL::CComPtrBase.*::operator->NoStepInto ATL::CHeapPtrBase.*::operator&NoStepInto ATL::CHeapPtrBase.*::operator->NoStepInto ATL::CComBSTR::operator&NoStepInto std::forward<.*NoStepInto std::move<.*NoStepInto Platform::EventSource::Invoke.*NoStepInto IID_PPV_ARGS_Helper<.*NoStepInto Microsoft::WRL::ComPtr<.*>::operator&NoStepInto Microsoft::WRL::ComPtr<.*>::operator->NoStepInto Microsoft::WRL::Details::ComPtrRef.*NoStepInto operator newNoStepInto
修改为
  1. <?xml version="1.0" encoding="utf-8"?>
  2. xmlns="http://schemas.microsoft.com/vstudio/debugger/natstepfilter/2010">
  3. __security_check_cookieNoStepInto
  4. __abi_winrt_.*NoStepInto
  5. _ObjectStublessClient.*NoStepInto
  6. _Invoke@12NoStepInto
  7. _RTC_Check(Esp|StackVars)NoStepInto
  8. _chkstkNoStepInto
  9. ATL::CComPtrBase.*::operator&NoStepInto
  10. ATL::CComPtrBase.*::operator->NoStepInto
  11. ATL::CHeapPtrBase.*::operator&NoStepInto
  12. ATL::CHeapPtrBase.*::operator->NoStepInto
  13. ATL::CComBSTR::operator&NoStepInto
  14. std::forward<.*NoStepInto
  15. std::move<.*NoStepInto
  16. Platform::EventSource::Invoke.*NoStepInto
  17. IID_PPV_ARGS_Helper<.*NoStepInto
  18. Microsoft::WRL::ComPtr<.*>::operator&NoStepInto
  19. Microsoft::WRL::ComPtr<.*>::operator->NoStepInto
  20. Microsoft::WRL::Details::ComPtrRef.*NoStepInto
  21. operator newNoStepInto
  22. std::.*NoStepInto


经过测试,这个方法也适用于VS2013,当然default.natstepfilter的文件路径要修改一下如果需要详细定制StepInto,请查看参考资料
参考资料1,参考资料2,参考资料3

来自为知笔记(Wiz)