Skip to content

Debugger should allow variable creation in the REPL window #3503

@gregg-miskelly

Description

@gregg-miskelly

Environment data

C# Extension version: 1.21.9

Steps to reproduce

  • Create the following project.
  • Set a breakpoint at the specified line
  • Evaluate var x = bytes.Length();
using System;
using System.Buffers;
using System.Text;

namespace DNC31Con
{
    class Program
    {
        static void Main(string[] args)
        {
            byte[] bytes = { (Byte)'h', (Byte)'e', (Byte)'l', (Byte)'l', (Byte)'o', (Byte)'!' };
            ReadOnlySequence<Byte> sequence = new ReadOnlySequence<byte>(bytes);

            Console.WriteLine("Hello World!"); // breakpoint here
        }
    }
}

Expected behavior

Implicit variable 'x' should be created.

Actual behavior

Evaluation fails

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebuggerfixedFixed and available in the stable version of C# Extension.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions