Skip to content

[BUG] Debug strings are truncated #880

@durandt

Description

@durandt

Describe the Issue

I run VSCode on a M1 (ARM) mac and I have the C#, C# DevKit and MAUI extensions.

When I debug a MAUI app on the iPhone simulator and:
. hover over a variable, its value is truncated to 100 chars.
. type "variableName" in the Debug Console, the output is also truncated to 100 chars
. Add a watch for "variableName" and right-click it and use the "Copy Value" function, the copied value is also truncated to 100chars

Steps To Reproduce

Using VSCode for mac with C#, C# DevKit and MAUI extensions, create a string that has more than 100chars. (Assembly.GetExecutingAssembly().Location should do it)

Try to get the value of that variable using the debugger.

Se that the value is truncated to 100 chars if you try to hover it, to add it as watch and copy value or print it in the debug console.

Expected Behavior

Display/copy the whole (untruncated) value.

Environment Information

  • macOS M1 13.6.3 (22G436)
  • VSCode 1.85.1
  • C# extension v2.15.30
  • C# DevKit v1.2.7
  • .NET MAUI extension v0.7.10 (preview)
    | VS Bug 1975720

Metadata

Metadata

Assignees

Labels

area-debuggingarea-mauibugSomething isn't workingfixedtriagedThe issue has been triagedvs-syncAdd this label to synchronize the issue to AzDovs-syncdLinked to AzDO

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions