Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger should use larger string truncation limit when evaluating from the Debug Console #6719

Closed
gregg-miskelly opened this issue Dec 5, 2023 · 1 comment

Comments

@gregg-miskelly
Copy link
Contributor

gregg-miskelly commented Dec 5, 2023

Steps to reproduce

  1. Create a new C# Console app
  2. Replace the content with below
  3. Set a breakpoint where indicated
  4. Start debugging
  5. From the Debug Console, evaluate 'longString'

Expected behavior

The full value of longString should be displayed (up until a fairly large truncation value)

Actual behavior

longString is truncated after 1024 characters

Work around

Right click on the value in the Debug Console and invoke 'Copy'

Content of the app

    public static void Main()
    {
        string longString = "[" + new string('*', 1024) + "]";
        Console.WriteLine(longString); // breakpoint here
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants