Skip to content

debug: make it easier to display long strings while debugging #645

@segevfiner

Description

@segevfiner

Is your feature request related to a problem? Please describe.
delve trims strings to 64 characters by default. Very very often I have to jump through hoops around this to be able to see the string I need to figure out what went wrong. The current ways to work with this leave something to be desired.

I can index the string, each time with a larger offset to try and see the next part of the string, though that's obviously rather inconvenient.

The limit is settable via the launch configuration (I don't know if delve reads any config file when launched via VS Code?), or by the go.delveConfig configuration value. Increasing it makes it more convenient yet I'm not sure of the performance implications or why the limit is so low to begin with. Also the limit cannot be set while already debugging, which is annoying.

Describe the solution you'd like
This might need a better default, a way to set it while debugging, and/or a better way to see the whole string even with the current default, for example having a button/link next to a trimmed string that allows to view the rest of it (Not sure if that is possible with the DAP)

Describe alternatives you've considered
Just set the configuration (Possibly making it easier for new users to discover it). Keep jumping through hoops with indexing.

Additional context
Screenshot
Argh...

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebugIssues related to the debugging functionality of the extension.DuplicateMake it obvious when issues are closed as duplicateFrozenDueToAge

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions