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

Allow changing showGlobalVariables in settings #2323

Description

If I'm using the extension version 0.8.1-beta.7 debugging is very fast and only local appears in the variable window:
image
config:

{
    "go.delveConfig": {
        "apiVersion": 1,
        "dlvLoadConfig": {
            "followPointers": true,
            "maxVariableRecurse": 1,
            "maxStringLen": 600,
            "maxArrayValues": 64,
            "maxStructFields": -1,
            "showGlobalVariables": false
        },
    }
}

Now if I install 0.8.1-beta.12 or 0.9.1, debugging is slightly to significantly slower depending on the amount of variables that are getting collected by the debugger. Setting showGlobalVariables to false (as mentioned here: #2133 (comment)) doesn't really seem to do anything for me (there might be a slight improvement but there is noticeable lag here that is not present in the beta version 0.8.1-beta.7 I mentioned above). Regardless of whether or not showGlobalVariables is set to false, global still appears in the frame:

image

I'm guessing that there is still some other processing being done here in the latest versions that wasn't being done in versions where the debugger works much more fluidly. Is there a way to just completely disable global variables? Is this even expected when showGlobalVariables is set to true? Global variables aren't really recommended in general by the go community anyways so an option to disable them completely in favor of higher performance would be appreciated.

Steps to Reproduce:

  1. Run debug session with above config
  2. Debugging is slow, global variables still appear in the variables pane.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions