[英]How to debug into AutoMapper code?
I am using AutoMapper to map my business objects to my view model and there is a custom type I wrote that is not mapping correctly resulting in an exception.我正在使用 AutoMapper 将我的业务对象映射到我的视图模型,并且我编写的自定义类型未正确映射导致异常。 I am trying to figure out how to setup my system so that I can debug into AutoMapper.DLL.
我想弄清楚如何设置我的系统,以便我可以调试到 AutoMapper.DLL。 Does anyone know how to do this without downloading the source and building the source first?
有谁知道如何在不下载源代码并首先构建源代码的情况下执行此操作?
If anyone has a link to instructions for doing this or knows how to set this up, I would greatly appreciate it.如果有人有执行此操作的说明的链接或知道如何进行设置,我将不胜感激。
AutoMapper has SourceLink enabled and a symbols package on NuGet (the same is true for the MyGet build). AutoMapper 在 NuGet 上启用了 SourceLink 和符号包( MyGet构建也是如此)。 So debugging into AM works without building from source.
因此,无需从源代码构建即可调试到 AM。 You cannot debug into the mapping code per se, but check the execution plan .
你不能调试到映射代码本身,但检查执行计划。
您需要下载源代码以进行调试,一旦代码编译成dll,就无法调试代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.