-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging decorated methods yields "Source Not Available" error. #253
Comments
While this is possible, the effort involved is significant. Unfortunately the ROI for this feature is not worth the effort. @Nelladel if you want to go to the effort of submitting a pull request that adds this feature I am happy to consider it |
Hi @SimonCropp : Thank you for the quick response! I spent a whole lot of time attempting to find a solution, and came out empty-handed. I was wondering if I was doing something really dumb and couldn't get it to work, or the feature was just impossible (or way too hard) to implement. So, that means that if I'm in the debugging stage of the project, I should just remove ALL weaver attributes from the methods, and then apply them once I'm done? I'd love to submit a pull-request, but this is completely out of my pay-grade, as I have no idea about what's going on or where to begin. Sorry :( |
for each instruction injected you need to mark it as hidden https://github.com/Fody/Janitor/blob/master/Janitor.Fody/CecilExtensions.cs#L215 |
I'm not sure if this HideLineFromDebugger still works, I once had some troubles with this. |
Using:
As per the Stack Overflow issue mentioned above:
I have the following scenario:
Where
ProjectA
is a simple class library, andProjectB
is a Console Application.ProjectA.Class1.cs
contains the following code:ProjectA.Weaver.cs
contains:And the Console Application's (
ProjectB.Program.cs
)entry point contains:And
ProjectA.FodyWeavers.xml
contains:If I put a breakpoing inside
Class1.A()
, and attempt to Step-into (F11
), the following Source Not Available window pops up:Is there a way to:
I've tried:
Weaver.cs
methods ([DebbugerNonUserCode]
,[DebbugerStepThrough]
,[DebbugerHidden]
...)ProjectB
Full
Expected behaviour:
Either enter into the weaver code, or at least skip it and go further into the call stack.
The text was updated successfully, but these errors were encountered: