You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Visual Studio 2017开启Control Flow Guard调试时guard_dispatch.asm未找到问题的解决求助

Visual Studio 2017开启Control Flow Guard调试时guard_dispatch.asm未找到问题的解决求助

我在Visual Studio 2017里给C++程序开启了Control Flow Guard选项(/guard:cf),用调试模式编译后,每次用调试器单步进入函数时,VS都会弹出找不到guard_dispatch.asm源文件的页面,这实在太烦人了,想把这个页面去掉。

我想问问大家,哪里能找到或者下载guard_dispatch.asm的源码?我在VC的这个路径下:C:\dev\vs150\VC\Tools\MSVC\14.16.27023\crt\src\i386,找到了memcpy.asm这类汇编文件,但就是没看到guard_dispatch.asm。

看调用栈的话,调试器会停在_guard_dispatch_icall_nop()函数这里。我试过定义natstepfilter规则来跳过这个函数,但没起作用,规则内容如下:

<?xml version="1.0" encoding="utf-8"?>
<StepFilter xmlns="http://schemas.microsoft.com/vstudio/debugger/natstepfilter/2010">
<Function><Name>_guard_dispatch_icall_nop</Name><Action>NoStepInto</Action></Function>
</StepFilter>

我还试过取消勾选调试选项里的「DEBUG / 选项 / 调试 / 常规 / 启用地址级调试 / 若源不可用则显示反汇编」,但也没效果。

有没有人知道怎么解决这个问题?

备注:内容来源于stack exchange,提问作者Daniel Laügt

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 11:13:16