Skip to content

There is no way to debug a method marked as AllureStep #521

Closed
@kiragengis

Description

@kiragengis

Describe the Bug

When debugging code in C# with Visual Studio 2022 version 17.9.5 in Windows, any method marked with [AllureStep] does not allow inspecting (Quick Watch) the local variables. You can see the value of the parameters but not the local variables.

Steps to Reproduce

Debug this code with Visual Studio. Put a breakpoint at the end of the methods MethodWithStep and MethodWithoutStep.

[Test]
public void Test1()
{
    MethodWithStep();
    MethodWithoutStep();
}

[AllureStep]
public void MethodWithStep() 
{
    int notVisibleVariable = 7;
}

public void MethodWithoutStep()
{
    int visibleVariable = 7;
}

Expected Behaviour

During debugging, the person should be able to see the value of the variable notVisibleVariable

Screenshots or Additional Context

This is the output from the method with a Step:
image

This is the output from a method without a Step
image

What Language are you using?

C#

What Framework/Allure Integration you are using?

allure-nunit

What version of Allure Integration you are using?

2.11

What version of Allure Report you are using?

2.11

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions