Closed ESolovova closed 3 years ago
Hi, Thanks for the report. Look like a bug. Will be fixed.
ps. do you know if there is any lib that I can use to check the validity of pdb at runtime (tests)?
ps. do you know if there is any lib that I can use to check the validity of pdb at runtime (tests)?
Unfortunately, no, I don't know, sorry. I use our own JetBrains pdb reader, but it's not public.
Would you mind to check if v2.2.3 fix the issue, please?
It did not
There were some changes recently, could you please check it against 2.4.1 if this issue is still relevant
The issue is not resolved.
tracked in #150
dotCover considers pdb-files to be invalid:
It seems to me that the problem is caused by the FluentIL.MethodEditor.Instead extension which clears method body instructions, but doesn't clear method variables: https://github.com/pamidur/fluent-il/blob/cf245d3e7cb9dab3e72c08b847a7adc5f49d915b/src/FluentIL/MethodEditor.cs#L50
Because of that MonoCecil writes to pdb-files invalid scopes debug info.