Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

when debug, can't get whole value if variable too long #2043

Closed
ryzencool opened this issue Oct 24, 2018 · 2 comments
Closed

when debug, can't get whole value if variable too long #2043

ryzencool opened this issue Oct 24, 2018 · 2 comments

Comments

@ryzencool
Copy link

ryzencool commented Oct 24, 2018

when in debug mode, if a variable's value is too long, the debug panel can't display whole value, i try to right click, the options are grey

macOS mojave version 10.14
vscoe Version 1.28.2 (1.28.2)

image

@gngchrs
Copy link

gngchrs commented Oct 24, 2018

I think @ramya-rao-a covered this her Gophercon 2018 Lightning Talk

The limit is 64 characters.

You may need to change the go delve config to enable this.

go.delveConfig {
    useApiV1: false,
    dlvLoadConfig: {
        // .....
       maxStringLen: 100
     }
}

@ramya-rao-a
Copy link
Contributor

Thanks @gangachris

From the 0.6.90 release of this extension on 3rd of this month, we are using version 2 of delve apis by default. So all you need to add in your settings is

go.delveConfig {
    dlvLoadConfig: {
       maxStringLen: 100
    }
}

The issue with the context menu entries being disabled is covered in #1990

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants