pamidur / aspect-injector

AOP framework for .NET (c#, vb, etc)
Apache License 2.0
745 stars 112 forks source link

Impossible to debug method body that was wrapped around with aspect #82

Closed ghost closed 5 years ago

ghost commented 5 years ago

All breakpoints disappears after debug starts. Sometimes breakpoints marked with exclamation mark with notice: "code is was changed since last time"

image

pamidur commented 5 years ago

The issue is there due to the fact you use old csproj format and thus old debuginfo. I'll look into it and maybe find a way to support old format. Until then you can switch to new debug format (it shouldn't make any difference to your project): default

ghost commented 5 years ago

Yes it works now, thanks a lot

pamidur commented 5 years ago

I'll let you know if I can fix it in generic way. Or I'll add it as a known issue. However issues like this can appear because there are many things(issues) with old csproj format that even Microsoft will not fix. In general I suggest to look at migrating to new csproj format for your projects.

Thanks for your reports, it helps a lot to make AspectInjector better!

pamidur commented 5 years ago

It should work now with FULL debug info in 2.0.2

ghost commented 5 years ago

Quick check shows that now its working.