Cannot set breakpoint in primary constructor lambda function
I like to use primary constructors. I often build objects by inherting an “Envelope” class which accepts a lambda function. But when using primary constructors, I am unable to set breakpoints in the lambda function.
When I use the classic constructor which directs to base, I can set a breakpoint without problems.
public sealed class MyObject(string someVariable) : SomeAbstractEnvelope(() => {
//Cannot set breakpoint here });
Please sign in to leave a comment.
Hi
Thank you for reporting it.
Looks like there is a bug there. I've filed an issue . Please follow it for further updates.
Is there some timeframe when this might be resolved? It has a significant impact on my daily work. Whenever I have to debug one of these classes, I have to restructure my code by adding a class constructor and moving the base constructor call around. And 90% of my classes are designed like this, so it would really help when this issue is solved :)
Hi,
So far I can see that this issue was scheduled for the next release. Please stay tuned.
Thank you for the update. That would be great