简体   繁体   English

DNX-如何使用第三方库调试符号?

[英]DNX - how to use 3rd party library debugging symbols?

I'm using ASP.MVC 5. At this moment, documentation is still missing some important pieces, and I need to reverse-engineer some stuff. 我正在使用ASP.MVC5。目前,文档仍然缺少一些重要的内容,因此我需要对某些内容进行反向工程。

I was able to download the sources, build it on my own with. 我能够下载源代码,并自行构建。

So, at this point, I have Microsoft.AspNet.Mvc.ViewFeatures.6.0.0-rc1-final.symbols.nupkg , with desired DLL and PDB. 因此,在这一点上,我具有Microsoft.AspNet.Mvc.ViewFeatures.6.0.0-rc1-final.symbols.nupkg和所需的DLL和PDB。

Previously, I'd just replace the referenced DLLs in my website's /bin/ with the ones build in debug mode (and PDBs), and be all set. 以前,我只是将我网站的/ bin /中引用的DLL替换为以调试模式(和PDB)构建的DLL,并将其全部设置好。

I don't know where does the website live, so I cannot replace any DLLs. 我不知道网站在哪里,所以我不能替换任何DLL。 I assumed that somehow I can tell VS to use .symbols. 我以某种方式可以告诉VS使用.symbols。 package where appropriate, but no luck in finding that option. 包在适当的地方,但找不到运气。

Is there any feasible way how to have 3rd party library built in debug and actually debugged? 有什么可行的方法如何在调试中构建并实际调试第三方库?

You could: 你可以:

  1. unpack nupkg file (it's a zip file - just change extension) and extract .pdb files OR use ones from build (probably that's what you ment but just for documentatin purposes) 解压缩nupkg文件(这是一个zip文件-只需更改扩展名)并解压缩.pdb文件或从构建文件中使用这些文件(可能正是您所提到的,但仅出于文档目的)
  2. Use symbols window in VS to point to folder with symbols 在VS中使用符号窗口指向带有符号的文件夹 在此处输入图片说明
  3. Instead of using pdb file use sources by editing global.json file ( projects section) to add external project path like ( source site ): 代替使用pdb文件,使用源代码,方法是编辑global.json文件(“ projects部分)以添加外部项目路径,例如“( 源站点 )”:

{ "projects": [ "src", "test", "c:\\\\sources\\\\Configuration\\\\src" ], "sdk": { "version": "1.0.0-rc1-final" } }

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM