简体   繁体   English

vs code c#omnisharp,我该如何调试外部库

[英]vs code c# omnisharp , how can I debug external library

I am trying to step through my ASP net core library code in visual studio code and don't know how to basically disable "just my code" and attach pdbs. 我试图通过Visual Studio代码中的ASP网络核心库代码,并且不知道如何基本上禁用“只是我的代码”并附加pdbs。

The default stack inspecting omnisharp behavior during a breakpoint hit is: 在断点命中期间检查omnisharp行为的默认堆栈是:

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

How can I debug external library code? 如何调试外部库代码?

It seams that I needed to edit vs code's launch.json workspace file according to : 它根据以下内容编辑我需要编辑的代码的launch.json工作区文件:

https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md the section with "justMyCode":false , "requireExactSource": false and "symbolPath": [ "/Volumes/symbols" ] https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md带有"justMyCode":false的部分"justMyCode":false"requireExactSource": false"symbolPath": [ "/Volumes/symbols" ]

Now the problem is the symbols. 现在问题是符号。 Can't seam to find .net core symbols for public releases of asp net mvc. 公开发布的asp net mvc无法找到.net核心符号。 I will have to manually compile https://github.com/aspnet/Mvc ,and all the other middleware I am interested in. 我将不得不手动编译https://github.com/aspnet/Mvc ,以及我感兴趣的所有其他中间件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何确定 Visual Studio Code 的 C#/OmniSharp 扩展提供的格式选项的名称和默认值? - How can I determine the names and default values of the formatting options provided by the C#/OmniSharp extension for Visual Studio Code? 如何调试C#类库中的堆错误? - How can I debug heap errors in a C# class library? 我如何调试在外部C#应用程序中切换的C ++ DLL(无法从调试器启动) - How can i debug C++ DLLs SWIGed in external C# app (that can not be started from debugger) OmniSharp的VS Code的C#扩展突然停止能够加载我的csproj文件? - C# extention for VS Code by OmniSharp suddenly stopped being able to load my csproj files? VS Code 不会在我的 Unity C# 脚本中显示错误(可能是omnisharp 问题) - VS Code will not display errors in my C# script for Unity (possible omnisharp problem) vs code C# 扩展问题,一些项目由于 OmniSharp 而无法加载 - vs code Problems with C# extension, Some projects have trouble loading due to OmniSharp 无法在VS 2010中调试C#Windows窗体控件库。但是我可以调试VB Windows窗体控件库。 关键是什么? - Unable to debug a C# Windows Forms control Library in VS 2010. But i can debug VB Windows Forms control Library. What is the key? 如何为 C# 配置默认的 VS Code 命名空间? - How can I configure default VS Code namespaces for C#? 如何在 VS 代码中运行 c# - How can I run c# in VS code C#-如何在VS2015中构建/调试此代码? - C# - How do I build/debug this code in VS2015?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM