【问题标题】:vs code c# omnisharp , how can I debug external libraryvs code c#omnisharp,我如何调试外部库
【发布时间】:2017-10-06 10:56:17
【问题描述】:

我正在尝试在 Visual Studio 代码中单步执行我的 ASP 网络核心库代码,但不知道如何基本上禁用“只是我的代码”并附加 pdb。

在断点命中期间检查全锐行为的默认堆栈是:

MyNamespace.MyCLass.function()    
[External Code] (\Unknown Source:0)

如何调试外部库代码?

【问题讨论】:

    标签: c# debugging visual-studio-code omnisharp


    【解决方案1】:

    我需要根据以下内容编辑 vs code 的 launch.json 工作区文件:

    https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md 该部分与 "justMyCode":false"requireExactSource": false"symbolPath": [ "/Volumes/symbols" ]

    现在的问题是符号。无法找到用于公开发布的 asp net mvc 的 .net 核心符号。 我将不得不手动编译 https://github.com/aspnet/Mvc 以及我感兴趣的所有其他中间件。

    【讨论】:

      猜你喜欢
      • 2020-08-25
      • 1970-01-01
      • 2018-05-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-20
      • 2020-10-10
      相关资源
      最近更新 更多