Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. I am trying to figure out how to setup my system so that I can debug into 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.

like image 757
Leslie Hanks Avatar asked Mar 19 '26 01:03

Leslie Hanks


1 Answers

AutoMapper has SourceLink enabled and a symbols package on NuGet (the same is true for the MyGet build). So debugging into AM works without building from source. You cannot debug into the mapping code per se, but check the execution plan.

like image 101
Lucian Bargaoanu Avatar answered Mar 20 '26 16:03

Lucian Bargaoanu