The generated PDB has issues - stackframe switching is not supported.

未关闭
#3,633 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
csharp
领域
devtools

调研方向

首先,使用 ILSpy 生成的 C# 项目和 PDB 在 Visual Studio 中重现该问题,然后在 Call Stack 中切换帧,并比较导航和语言类型。检查报告中提到的 PDB 生成路径和 source-project 生成路径。完成的标准是,切换堆栈帧后会导航到对应的 C# 源代码,而不是显示 Unknown。

由索引模型根据 Issue 内容生成。

描述

Bug

Set a breakpoint in the corresponding source code and trigger it, as shown below:

Image

When switching the current stack frame in the Call Stack, Visual Studio fails to navigate to the C# file—even though the source code clearly exists (just like the top frame, it comes from the same ILSpy-generated C# project). Furthermore, the language type changes to "Unknown", as shown below:

Image

However, I tested this with dotPeek and did not encounter this issue.
Moreover, it supports generating the PDB file simultaneously when generating the source project, whereas ILSpy requires generating them separately.
Image

主要语言
C#
星标
27.1k
派生
3.8k
平均合并
1 天 23 小时
30 天内合并 PR
44

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

icsharpcode/ILSpy 的其他 Issue

查看 icsharpcode/ILSpy 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。