pamidur / aspect-injector

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

Source Not Available #164

Closed parand87 closed 2 years ago

parand87 commented 2 years ago

Hi,

I decorated my method with [LogCall] (as you mentioned in the sample), when I try to step into my method while debugging, I encounter "Source Not Available (Source information is missing from the debug information for this module)" error.

My project is a sample one with just AspectInjector installed (.Net Framework 4.7)

image

pamidur commented 2 years ago

Hi @parand87 , thank you for report. I can confirm this is the case for Stepping-in debugging in visual studio. While it is being fixed you can still use StepOver(F10) and Run(F5) albeit it is not as convenient

pamidur commented 2 years ago

Please try https://github.com/pamidur/aspect-injector/releases/tag/2.6.1-pre1 and let us know if it is fixed for you!

parand87 commented 2 years ago

Unfortunately I could not build the project due to lack of FluentIL projects any tips on that?

pamidur commented 2 years ago

Every release is available on nuget as a package, so for testing you cat get it from there. https://www.nuget.org/packages/AspectInjector/2.6.1-pre1

If you'd like to build from sources, you'll need to execute git submodules init after pulling sources since FluentIL is attached as submodule.

Please let me know if any of these works for you!

parand87 commented 2 years ago

I've installed using nuget and F11 worked! thank you very much :)

dieudo25 commented 1 year ago

Hello,

I am also facing the error message "Source not available" while debugging my application.

Although I can access the rest of the code by pressing 'F11', I am looking for a more convenient way to debug the code.

Do you have any solution for this ?

Thank you.