HtmlAgilityPack调试要求提供源代码

编程入门 行业动态 更新时间:2024-10-27 19:16:22
本文介绍了HtmlAgilityPack调试要求提供源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经在项目的类库中添加了html敏捷包.每当我尝试调试 HtmlAgilityPack 特定代码时,它都会打开一个浏览窗口,询问 HtmlAgilityPack 源文件(例如HtmlDocument.cs),或者给出错误消息没有源文件".当前位置可用的代码."

I have added html agility pack to my class library in project. Whenever i try to debug the HtmlAgilityPack specific code it opens a browse window asking for a HtmlAgilityPack source file (for example HtmlDocument.cs) or gives the error "There is no source code available for the current location."

这到底是什么,为什么我不能调试与HtmlAgilityPack相关的代码.

What the heck is this, why I can not debug the HtmlAgilityPack related code.

推荐答案

当您在项目中包含DLL并进入代码时,由于DLL不包含源代码,因此无法向您显示源视图-仅编译的字节码.如果要调试,则必须告诉Visual Studio源代码在哪里,然后首先下载源代码.

When you include a DLL in your project and step into the code it is not possible to show you a source view because a DLL does not include the source code - only the compiled byte code. If you want to debug you have to tell Visual Studio where the source code is, and to do that you need to download it first.

或者,您可以只安装 .NET Reflector Pro 插件(不是免费的,但您可以免费试用),并使其自动反汇编程序集,并允许您进入反编译的代码.如果您使用的第三方产品的源代码不可用,这也很有用.

Alternatively you can just install the .NET Reflector Pro plugin (not free but you can try it for free) and have it automatically decompile the assembly and allow you to step into the decompiled code. This can also be useful if you have a third party product for which the source code is not available.

更多推荐

HtmlAgilityPack调试要求提供源代码

本文发布于:2023-05-31 22:04:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/400212.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:源代码   HtmlAgilityPack

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!