-
Notifications
You must be signed in to change notification settings - Fork 676
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
Debug strings are truncated #6496
Comments
Thanks for reporting this @HughGrovesArup Two notes:
|
Thanks for the response, good to know that this is not intended behaviour. We can stick with |
Glad to see other people are experiencing this issue as well! I thought I was going nuts |
For those wondering how to use a specific version, go to |
Fixed with #6517 |
Full description of the new expected behavior (which will ship in the next version of the extension): Strings are truncated if they are longer than 1024 UTF-16 characters, but the full value up to 5,242,880 characters or 10 megabytes, is available using 'Copy Value' in the watch or variables window. Truncated strings will end with '...'. |
Copy value copies truncated value with ellipsis at the end. C# : v2.6.24 |
This shipped in v2.7.25, which is now live in the marketplace. |
@monster-echo the current behavior is that you will get a string truncated at 1024 characters unless you use 'Copy Value'. But I think your complaint makes sense that we should also use a larger truncation limit when evaluating from the Debug Console. I opened #6719 to track that. |
I mistake the extension, this sence happened in the MAUI project . This repository is still the vscode maui extension too? @gregg-miskelly |
@monster-echo MAUI issues should be opened in https://github.com/microsoft/vscode-dotnettools/issues |
A similar bug also happens with Flutter/Dart-debugging (right-click -> copy value gives me an incomplete string). |
@nomo-app You would want to open that bug in the repo of whatever extension's debugger you are using (not here :)). |
I also still get that issue with debug variables truncated after 100 characters (I use v2.15.30) I also use C# DevKit and MAUI extensions @gregg-miskelly how are we supposed to know what extension is responsible for which parts/behaviors of the UI? |
@durandt This issue is specific to CLR/CoreCLR. MAUI uses Mono on iPhone, so this issue wouldn't address that scenario. Your new issue is the appropriate home for Mono issues. |
I don't use MAUI, only vscode-csharp v2.15.30, but copying string values are still truncated |
@balazsmeszegeto if you have a repo, please open a new issue including steps to reproduce the problem |
Type: Bug
Issue Description
Note that version 2.4.2 and before of the C# plugin does not display this behaviour.
Steps to Reproduce
Expected Behavior
Should be able to see full string length, or be able to configure this limit.
(We need to see the full length strings for our debugging purposes, string length has not bee an issue so far - even very long ones).
Actual Behavior
String cutoff with ellipsis
Logs
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.83.0
C# Extension: 2.4.2
Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 7.0.306 Commit: f500069cb7Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.306\
Host:
Version: 7.0.9
Architecture: x64
Commit: 8e9a17b221
.NET SDKs installed:
2.1.700 [C:\Program Files\dotnet\sdk]
2.2.203 [C:\Program Files\dotnet\sdk]
5.0.214 [C:\Program Files\dotnet\sdk]
5.0.408 [C:\Program Files\dotnet\sdk]
6.0.317 [C:\Program Files\dotnet\sdk]
7.0.306 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.18 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
Extension version: 2.4.2
VS Code version: Code 1.83.0 (e7e037083ff4455cf320e344325dacb480062c3c, 2023-10-03T16:12:16.321Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: