Skip to content

Named return variables cannot be inspected #8310

Description

@mjmatthiesen

Please include the following with each issue:

1. Describe the bug
When a function has a named return variable the value cannot be inspected.

2. To Reproduce
Steps to reproduce the behavior:

  1. Create code with named return variable.
  2. Debug code
  3. inspect via hover/add to watch/debug console
  4. get out of scope.
internal procedure func() qtyToShip: Decimal
begin
  qtyToShip := 2;
end;

3. Expected behavior
Display the variables value.

4. Actual behavior
Displays out of scope

5. Versions:

  • AL Language: 17.0.2273547
  • Visual Studio Code: 1.130.0
  • Business Central: 26
  • List of Visual Studio Code extensions that you have installed:
  • Operating System:
    • Windows
    • Linux
    • MacOS

Final Checklist

Please remember to do the following:

  • Search the issue repository to ensure you are reporting a new issue

  • Reproduce the issue after disabling all extensions except the AL Language extension

  • Simplify your code around the issue to better isolate the problem

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