Skip to content

Block level variable scope is not visible during debugging #130

@ChristophDeCol

Description

@ChristophDeCol

Block level variable scope is not visible during debugging.
Seems similar to this issue: #93 which was reverted in this PR #102

Version 2.0.150 with MethodWeaver:
Variable "i" and "two" are missing.
Image

How it should be (Without MethodWeaver):

Image

minimal, reproducible example
internal class Program
{
    static void Main(string[] args)
    {
        TestDebugging();
    }

    [Log]
    private static void TestDebugging()
    {
        var one = 1;
        for (int i = 0; i < 1; i++)
        {
            var two = 2;
        }

    }
}

public sealed class LogAttribute : OnMethodBoundaryAspect
{
    public override void OnEntry(MethodExecutionArgs args)
    {
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions