[英]Unable to debug constructors of Singleton registered with Autofac
For some reaon, my breakpoints within constructors and pretty much all the functions of a type registered as SingleInstance()
within Autofac are not hit. 对于某些原因,构造函数中的断点以及在Autofac中注册为
SingleInstance()
的类型的几乎所有功能都没有受到影响。 If I remove SingleInstance()
registration and leave it per request then debugging works fine. 如果我删除
SingleInstance()
注册并根据请求保留它,则调试可以正常进行。
I don't want to remove the SingleInstance
registration just to be able to debug my stuff. 我不想删除
SingleInstance
注册只是为了能够调试我的东西。
Is there any way to do it and why does it happen like so in the first place? 有什么办法可以做到,为什么它会首先发生呢?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.