[英]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.